diff options
author | w0rp <devw0rp@gmail.com> | 2023-09-16 17:17:42 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-09-16 17:17:42 +0100 |
commit | cf270a1adadff2fa8b2931940ef8192b975f1ee4 (patch) | |
tree | ab6c484a526ec362c08e9a739cc5e5ece1b45ebf /test/lsp/test_lsp_root_detection.vader | |
parent | 1799f8bec63508fb103236cacefb60a5e5100be1 (diff) | |
download | ale-cf270a1adadff2fa8b2931940ef8192b975f1ee4.zip |
Stop supporting ale_lsp_root
We renamed the ale_lsp_root setting to ale_root long ago. Stop
supporting the old setting name.
Diffstat (limited to 'test/lsp/test_lsp_root_detection.vader')
-rw-r--r-- | test/lsp/test_lsp_root_detection.vader | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/lsp/test_lsp_root_detection.vader b/test/lsp/test_lsp_root_detection.vader index 291300f0..2aead6ba 100644 --- a/test/lsp/test_lsp_root_detection.vader +++ b/test/lsp/test_lsp_root_detection.vader @@ -1,10 +1,7 @@ Before: - Save g:ale_lsp_root Save g:ale_root - Save b:ale_lsp_root Save b:ale_root - unlet! g:ale_lsp_root let g:ale_root = {} call ale#assert#SetUpLinterTest('c', 'clangd') @@ -38,12 +35,6 @@ Execute(The buffer-specific variable can have funcrefs): AssertLSPProject 'abc123' -Execute(The buffer-specific variable can be the old ale_lsp_root setting): - let b:ale_lsp_root = '/some/path' - call ale#test#SetFilename('other-file.c') - - AssertLSPProject '/some/path' - Execute(The global variable can be a dictionary): let g:ale_root = {'clangd': '/some/path', 'golangserver': '/other/path'} call ale#test#SetFilename('other-file.c') @@ -70,20 +61,6 @@ Execute(The global variable is queried if the buffer-specific has no value): AssertLSPProject '/some/path' -Execute(The global variable can be the old ale_lsp_root setting): - let g:ale_root = {} - let g:ale_lsp_root = {'clangd': '/some/path', 'golangserver': '/other/path'} - call ale#test#SetFilename('other-file.c') - - AssertLSPProject '/some/path' - -Execute(A non-empty ale_root setting should replace the old ale_lsp_root): - let g:ale_root = {'clangd': '/some/path', 'golangserver': '/other/path'} - let g:ale_lsp_root = {'clangd': '/xxx', 'golangserver': '/xxx'} - call ale#test#SetFilename('other-file.c') - - AssertLSPProject '/some/path' - Execute(No path should be returned by default): call ale#test#SetFilename(tempname() . '/other-file.c') |