mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 00:22:28 +00:00
e4ddd32c84
* Fix languageserver.vim to consider Renviron * Update test_r_languageserver.vader * Update credits
23 lines
748 B
Plaintext
23 lines
748 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('r', 'languageserver')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'Rscript', 'Rscript --no-save --no-restore --no-site-file --no-init-file -e ' . ale#Escape('languageserver::run()')
|
|
|
|
Execute(The project root should be detected correctly):
|
|
AssertLSPProject '.'
|
|
|
|
call ale#test#SetFilename('../test-files/r/dummy/test.R')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/r')
|
|
|
|
Execute(Should accept configuration settings):
|
|
AssertLSPConfig {}
|
|
|
|
let b:ale_r_languageserver_config = {'r': {'lsp': {'debug': 'true', 'diagnostics': 'true'}}}
|
|
|
|
AssertLSPConfig {'r': {'lsp': {'debug': 'true', 'diagnostics': 'true'}}}
|