diff --git a/autoload/OmniSharp.vim b/autoload/OmniSharp.vim index 3eff7e28b..9459c7e6e 100644 --- a/autoload/OmniSharp.vim +++ b/autoload/OmniSharp.vim @@ -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