mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-02 01:23:30 +08:00
Check LSP capabilities before using them
This commit is contained in:
@@ -23,15 +23,14 @@ Execute(Command formatting should be applied correctly for LSP linters):
|
||||
\ 'executable': has('win32') ? 'cmd': 'true',
|
||||
\ 'command': '%e --foo',
|
||||
\ },
|
||||
\ {->0}
|
||||
\)
|
||||
|
||||
if has('win32')
|
||||
AssertEqual
|
||||
\ ['cmd', 'cmd /s/c "cmd --foo"', '/foo/bar'],
|
||||
\ g:args[:2]
|
||||
\ ['cmd', 'cmd /s/c "cmd --foo"', {}],
|
||||
\ g:args
|
||||
else
|
||||
AssertEqual
|
||||
\ ['true', [&shell, '-c', '''true'' --foo'], '/foo/bar'],
|
||||
\ g:args[:2]
|
||||
\ ['true', [&shell, '-c', '''true'' --foo'], {}],
|
||||
\ g:args
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user