From 3b7eb6a140c0070076c314d8fba75ab321a80427 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 24 Aug 2018 10:41:33 +0100 Subject: [PATCH] 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')