diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-09-10 17:24:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 17:24:04 +0100 |
commit | 99e9417ef901824200040c6a2d3e84f2e0ff4b8e (patch) | |
tree | ac65bf64cf940aefab2cc2e513b1baf83225354c /test/command_callback | |
parent | bfba216e617dd02d0dddcf390b3ec2eb0ab3e7e4 (diff) | |
parent | 169e4b67d3762cf03bd11eb8c2f6e11a43c45919 (diff) | |
download | ale-99e9417ef901824200040c6a2d3e84f2e0ff4b8e.zip |
Add support for Julia Language Server (#1894)
Diffstat (limited to 'test/command_callback')
3 files changed, 26 insertions, 0 deletions
diff --git a/test/command_callback/julia-languageserver-project/REQUIRE b/test/command_callback/julia-languageserver-project/REQUIRE new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/command_callback/julia-languageserver-project/REQUIRE diff --git a/test/command_callback/julia-languageserver-project/test.jl b/test/command_callback/julia-languageserver-project/test.jl new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/command_callback/julia-languageserver-project/test.jl diff --git a/test/command_callback/test_julia_languageserver_callbacks.vader b/test/command_callback/test_julia_languageserver_callbacks.vader new file mode 100644 index 00000000..a1f3a1ae --- /dev/null +++ b/test/command_callback/test_julia_languageserver_callbacks.vader @@ -0,0 +1,26 @@ +Before: + call ale#assert#SetUpLinterTest('julia', 'languageserver') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + AssertLinter 'julia', + \ ale#Escape('julia') . + \' --startup-file=no --history-file=no -e ' . + \ ale#Escape('using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);') + +Execute(The executable should be configurable): + let g:ale_julia_executable = 'julia-new' + + AssertLinter 'julia-new', + \ ale#Escape('julia-new') . + \' --startup-file=no --history-file=no -e ' . + \ ale#Escape('using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);') + +Execute(The project root should be detected correctly): + AssertLSPProject '' + + call ale#test#SetFilename('julia-languageserver-project/test.jl') + + AssertLSPProject ale#path#Simplify(g:dir . '/julia-languageserver-project') |