From 08d141edfb9cacea2ddba347581e670f4a04caa7 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 24 Aug 2018 10:41:33 +0100 Subject: Fix #1844 - Make the kotlin languageserver linter work again --- ale_linters/kotlin/languageserver.vim | 2 +- .../test_kotlin_languageserver_command_callback.vader | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/command_callback/test_kotlin_languageserver_command_callback.vader diff --git a/ale_linters/kotlin/languageserver.vim b/ale_linters/kotlin/languageserver.vim index 08f1c055..aea817ba 100644 --- a/ale_linters/kotlin/languageserver.vim +++ b/ale_linters/kotlin/languageserver.vim @@ -23,7 +23,7 @@ call ale#linter#Define('kotlin', { \ 'name': 'languageserver', \ 'lsp': 'stdio', \ 'executable_callback': ale#VarFunc('kotlin_languageserver_executable'), -\ 'command_callback': '%e', +\ 'command': '%e', \ 'language': 'kotlin', \ 'project_root_callback': 'ale_linters#kotlin#languageserver#GetProjectRoot', \}) diff --git a/test/command_callback/test_kotlin_languageserver_command_callback.vader b/test/command_callback/test_kotlin_languageserver_command_callback.vader new file mode 100644 index 00000000..e83a4f37 --- /dev/null +++ b/test/command_callback/test_kotlin_languageserver_command_callback.vader @@ -0,0 +1,8 @@ +Before: + call ale#assert#SetUpLinterTest('kotlin', 'languageserver') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + AssertLinter 'kotlin-language-server', ale#Escape('kotlin-language-server') -- cgit v1.2.3