Fix the dart language server command and cover it with tests

This commit is contained in:
w0rp 2018-09-04 11:15:59 +01:00
parent 87f125ddcf
commit 43b04d4e5b
No known key found for this signature in database
GPG key ID: 0FC1ECAA8C81CD83
2 changed files with 9 additions and 1 deletions

View file

@ -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',
\}) \})

View file

@ -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')