mirror of
https://github.com/dense-analysis/ale
synced 2025-01-28 02:33:31 +00:00
Fix the dart language server command and cover it with tests
This commit is contained in:
parent
87f125ddcf
commit
43b04d4e5b
@ -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')
|
Loading…
Reference in New Issue
Block a user