summaryrefslogtreecommitdiff
path: root/test/command_callback/test_r_languageserver_callbacks.vader
blob: 9a4a1f87c27c46f2f1fd100eccadfdbf11b95115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Before:
  call ale#assert#SetUpLinterTest('r', 'languageserver')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default executable path should be correct):
  AssertLinter 'Rscript', 'Rscript --vanilla -e ' . ale#Escape('languageserver::run()')

Execute(The project root should be detected correctly):
  AssertLSPProject '.'

  call ale#test#SetFilename('r_paths/dummy/test.R')

  AssertLSPProject ale#path#Simplify(g:dir . '/r_paths')

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'}}}