mirror of https://github.com/dense-analysis/ale
Fix the eclipselsp tests
This commit is contained in:
parent
0427ee84b4
commit
67d49c75a8
|
@ -1,19 +1,21 @@
|
|||
Before:
|
||||
call ale#assert#SetUpLinterTest('java', 'eclipselsp')
|
||||
let b:ale_java_eclipselsp_path = '/home/user/eclipse.dst.ls'
|
||||
call ale#test#SetFilename('dummy.java')
|
||||
|
||||
let b:cfg = '/testplugin/test/config_linux'
|
||||
let b:ale_java_eclipselsp_path = '/home/user/eclipse.dst.ls'
|
||||
|
||||
let b:cfg = ale#path#Simplify(g:dir . '/../config_linux')
|
||||
|
||||
if has('win32')
|
||||
let b:cfg = 'C:\testplugin\test\config_win'
|
||||
let b:cfg = ale#path#Simplify(g:dir . '/../config_win')
|
||||
elseif has('macunix')
|
||||
let b:cfg = '/testplugin/test/config_mac'
|
||||
let b:cfg = ale#path#Simplify(g:dir . '/../config_mac')
|
||||
endif
|
||||
|
||||
|
||||
After:
|
||||
unlet b:ale_java_eclipselsp_path
|
||||
unlet! b:ale_java_eclipselsp_path
|
||||
unlet! b:cfg
|
||||
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(VersionCheck should return correct version):
|
||||
|
@ -86,7 +88,7 @@ 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 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',
|
||||
|
@ -97,7 +99,7 @@ Execute(The eclipselsp callback should allow custom configuration path):
|
|||
\ '-jar',
|
||||
\ '',
|
||||
\ '-configuration',
|
||||
\ b:ale_java_eclipselsp_config_path,
|
||||
\ ale#path#Simplify('/home/config'),
|
||||
\ '-data',
|
||||
\ ''
|
||||
\]
|
||||
|
|
Loading…
Reference in New Issue