Fix the dart language server command and cover it with tests
This commit is contained in:
parent
87f125ddcf
commit
43b04d4e5b
2 changed files with 9 additions and 1 deletions
|
@ -15,6 +15,6 @@ call ale#linter#Define('dart', {
|
||||||
\ 'name': 'language_server',
|
\ 'name': 'language_server',
|
||||||
\ 'lsp': 'stdio',
|
\ 'lsp': 'stdio',
|
||||||
\ 'executable_callback': ale#VarFunc('dart_language_server_executable'),
|
\ 'executable_callback': ale#VarFunc('dart_language_server_executable'),
|
||||||
\ 'command_callback': ale#VarFunc('dart_language_server_executable'),
|
\ 'command': '%e',
|
||||||
\ 'project_root_callback': 'ale_linters#dart#language_server#GetProjectRoot',
|
\ 'project_root_callback': 'ale_linters#dart#language_server#GetProjectRoot',
|
||||||
\})
|
\})
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
Before:
|
||||||
|
call ale#assert#SetUpLinterTest('dart', 'language_server')
|
||||||
|
|
||||||
|
After:
|
||||||
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
|
Execute(The default command should be correct):
|
||||||
|
AssertLinter 'dart_language_server', ale#Escape('dart_language_server')
|
Reference in a new issue