mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-20 08:38:31 +08:00
Use one LSP connection per project
This commit is contained in:
@@ -5,7 +5,7 @@ Before:
|
||||
|
||||
" Mock the StartProgram function so we can just capture the arguments.
|
||||
function! ale#lsp#StartProgram(...) abort
|
||||
let g:args = a:000
|
||||
let g:args = a:000[1:]
|
||||
endfunction
|
||||
|
||||
After:
|
||||
@@ -27,10 +27,10 @@ Execute(Command formatting should be applied correctly for LSP linters):
|
||||
|
||||
if has('win32')
|
||||
AssertEqual
|
||||
\ ['cmd', 'cmd /s/c "cmd --foo"', {}],
|
||||
\ ['cmd', 'cmd /s/c "cmd --foo"'],
|
||||
\ g:args
|
||||
else
|
||||
AssertEqual
|
||||
\ ['true', [&shell, '-c', '''true'' --foo'], {}],
|
||||
\ ['true', [&shell, '-c', '''true'' --foo']],
|
||||
\ g:args
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user