Skip to content

Commit d289308

Browse files
committed
Start OmniSharp server after user selects solution when there are
multiple
1 parent b3c9c14 commit d289308

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: autoload/OmniSharp.vim

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ function! OmniSharp#GetHost(...) abort
1919
if get(host, 'sln_or_dir', '') ==# ''
2020
let host.sln_or_dir = OmniSharp#FindSolutionOrDir(1, bufnr)
2121
let host.initialized = 0
22+
let job = OmniSharp#proc#GetJob(host.sln_or_dir)
23+
if type(job) != type({})
24+
call OmniSharp#StartServer(host.sln_or_dir)
25+
endif
2226
call setbufvar(bufnr, 'OmniSharp_host', host)
2327
endif
2428
" The returned dict includes the job, but the job is _not_ part of

0 commit comments

Comments
 (0)