summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorGrim Kriegor <grimkriegor@krutt.org>2019-05-21 21:13:06 +0100
committerw0rp <w0rp@users.noreply.github.com>2019-05-21 21:13:06 +0100
commit0427ee84b4af77be84cbb005c26dc2142305fb73 (patch)
treeb7e78622533a6f2969374722256b2b447e97e5cf /test/command_callback
parentf6ae056d02e82143f26db49b642d2f6d82d12cde (diff)
downloadale-0427ee84b4af77be84cbb005c26dc2142305fb73.zip
Allow running eclipselsp as installed by system package on GNU/Linux (#2523)
* Search eclipselsp jar and config files within system package path * Allow setting an alternate eclipselsp configuration directory * Add test for ale_java_eclipselsp_config_path
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_eclipselsp_command_callback.vader17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command_callback/test_eclipselsp_command_callback.vader b/test/command_callback/test_eclipselsp_command_callback.vader
index c0ad89a5..881eb8c1 100644
--- a/test/command_callback/test_eclipselsp_command_callback.vader
+++ b/test/command_callback/test_eclipselsp_command_callback.vader
@@ -85,3 +85,20 @@ Execute(The eclipselsp callback should allow custom executable):
\]
AssertLinter '/bin/foobar', join(cmd, ' ')
+Execute(The eclipselsp callback should allow custom configuration path):
+ let b:ale_java_eclipselsp_config_path='/home/config'
+ let cmd = [ ale#Escape('java'),
+ \ '-Declipse.application=org.eclipse.jdt.ls.core.id1',
+ \ '-Dosgi.bundles.defaultStartLevel=4',
+ \ '-Declipse.product=org.eclipse.jdt.ls.core.product',
+ \ '-Dlog.level=ALL',
+ \ '-noverify',
+ \ '-Xmx1G',
+ \ '-jar',
+ \ '',
+ \ '-configuration',
+ \ b:ale_java_eclipselsp_config_path,
+ \ '-data',
+ \ ''
+ \]
+ AssertLinter 'java', join(cmd, ' ')