Skip to content

Commit

Permalink
Start OmniSharp server after user selects solution when there are
Browse files Browse the repository at this point in the history
multiple
  • Loading branch information
e82eric committed Dec 29, 2021
1 parent d3e830a commit 915aeb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/OmniSharp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function! OmniSharp#GetHost(...) abort
if get(host, 'sln_or_dir', '') ==# ''
let host.sln_or_dir = OmniSharp#FindSolutionOrDir(1, bufnr)
let host.initialized = 0
let job = OmniSharp#proc#GetJob(host.sln_or_dir)
if type(job) != type({})
call OmniSharp#StartServer(host.sln_or_dir)
endif
call setbufvar(bufnr, 'OmniSharp_host', host)
endif
" The returned dict includes the job, but the job is _not_ part of
Expand Down

0 comments on commit 915aeb1

Please sign in to comment.