util.ErrMsg('Error: LSP server information is missing filetype or path')
continue
endif
- if !server->has_key('omnicompl')
- # Enable omni-completion by default
- server['omnicompl'] = v:true
- endif
+ # Enable omni-completion by default
+ server.omnicompl = get(server, 'omnicompl', v:true)
if !server.path->executable()
if !opt.lspOptions.ignoreMissingServer
source common.vim
-g:LoadLspPlugin()
-
def LspRunTests()
:set nomore
:set debug=beep
enddef
try
-
+ g:LoadLspPlugin()
exe $'source {g:TestName}'
g:StartLangServer()
-
+ LspRunTests()
catch
-
- call add(v:errors, $'Error: Failed to start language server for {g:TestName} with exception {v:exception} at {v:throwpoint}')
- qall!
-
+ writefile([$'FAIL: Tests in {g:TestName} failed with exception {v:exception} at {v:throwpoint} '], 'results.txt', 'a')
endtry
-LspRunTests()
qall!
# vim: shiftwidth=2 softtabstop=2 noexpandtab