Merge pull request #3559 from nibocn/master
fix(eclipselsp): org.eclipse.equinox.launcher_xxxx.jar file matching
This commit is contained in:
commit
471e20ed2b
1 changed files with 4 additions and 4 deletions
|
@ -29,28 +29,28 @@ function! ale_linters#java#eclipselsp#JarPath(buffer) abort
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Search jar file within repository path when manually built using mvn
|
" Search jar file within repository path when manually built using mvn
|
||||||
let l:files = globpath(l:path, '**/'.l:platform.'/**/plugins/org.eclipse.equinox.launcher_\d\.\d\.\d\d\d\.*\.jar', 1, 1)
|
let l:files = globpath(l:path, '**/'.l:platform.'/**/plugins/org.eclipse.equinox.launcher_*\.jar', 1, 1)
|
||||||
|
|
||||||
if len(l:files) >= 1
|
if len(l:files) >= 1
|
||||||
return l:files[0]
|
return l:files[0]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Search jar file within VSCode extensions folder.
|
" Search jar file within VSCode extensions folder.
|
||||||
let l:files = globpath(l:path, '**/'.l:platform.'/plugins/org.eclipse.equinox.launcher_\d\.\d\.\d\d\d\.*\.jar', 1, 1)
|
let l:files = globpath(l:path, '**/'.l:platform.'/plugins/org.eclipse.equinox.launcher_*\.jar', 1, 1)
|
||||||
|
|
||||||
if len(l:files) >= 1
|
if len(l:files) >= 1
|
||||||
return l:files[0]
|
return l:files[0]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Search jar file within unzipped tar.gz file
|
" Search jar file within unzipped tar.gz file
|
||||||
let l:files = globpath(l:path, 'plugins/org.eclipse.equinox.launcher_\d\.\d\.\d\d\d\.*\.jar', 1, 1)
|
let l:files = globpath(l:path, 'plugins/org.eclipse.equinox.launcher_*\.jar', 1, 1)
|
||||||
|
|
||||||
if len(l:files) >= 1
|
if len(l:files) >= 1
|
||||||
return l:files[0]
|
return l:files[0]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Search jar file within system package path
|
" Search jar file within system package path
|
||||||
let l:files = globpath('/usr/share/java/jdtls/plugins', 'org.eclipse.equinox.launcher_\d\.\d\.\d\d\d\.*\.jar', 1, 1)
|
let l:files = globpath('/usr/share/java/jdtls/plugins', 'org.eclipse.equinox.launcher_*\.jar', 1, 1)
|
||||||
|
|
||||||
if len(l:files) >= 1
|
if len(l:files) >= 1
|
||||||
return l:files[0]
|
return l:files[0]
|
||||||
|
|
Reference in a new issue