mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Use the psalm executable with the LS option
This is the simplest way of getting the psalm language server to run now.
This commit is contained in:
@@ -9,18 +9,18 @@ After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default executable path should be correct):
|
||||
AssertLinter 'psalm-language-server',
|
||||
\ ale#Escape('psalm-language-server')
|
||||
AssertLinter 'psalm',
|
||||
\ ale#Escape('psalm') . ' --language-server'
|
||||
|
||||
Execute(Vendor executables should be detected):
|
||||
call ale#test#SetFilename('psalm-project/test.php')
|
||||
|
||||
AssertLinter
|
||||
\ ale#path#Simplify(g:dir . '/psalm-project/vendor/bin/psalm-language-server'),
|
||||
\ ale#path#Simplify(g:dir . '/psalm-project/vendor/bin/psalm'),
|
||||
\ ale#Escape(ale#path#Simplify(
|
||||
\ g:dir
|
||||
\ . '/psalm-project/vendor/bin/psalm-language-server'
|
||||
\ ))
|
||||
\ . '/psalm-project/vendor/bin/psalm'
|
||||
\ )) . ' --language-server'
|
||||
|
||||
Execute(The project path should be correct for .git directories):
|
||||
call ale#test#SetFilename('psalm-project/test.php')
|
||||
|
||||
Reference in New Issue
Block a user