mirror of
https://github.com/dense-analysis/ale
synced 2024-12-20 05:11:26 +00:00
ddfc43e774
fixes #3350
21 lines
658 B
Plaintext
21 lines
658 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('rust', 'analyzer')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'rust-analyzer', ale#Escape('rust-analyzer')
|
|
|
|
Execute(The project root should be detected correctly):
|
|
AssertLSPProject ''
|
|
|
|
call ale#test#SetFilename('rust-rls-project/test.rs')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/rust-rls-project')
|
|
|
|
Execute(Should accept configuration settings):
|
|
AssertLSPConfig {}
|
|
let b:ale_rust_analyzer_config = {'diagnostics': {'disabled': ['unresolved-import']}}
|
|
AssertLSPOptions {'diagnostics': {'disabled': ['unresolved-import']}}
|