diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-22 19:04:45 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-22 19:04:55 +0100 |
commit | 6dc737cda1d640d2067b417ec270fbb623e3f960 (patch) | |
tree | 1804f0f4ca0f01957104b5cb5bda0c21f43893c3 /test/lsp/test_did_save_event.vader | |
parent | 899b61c5cc4564abb8a697532dc1376896c8e70d (diff) | |
download | ale-6dc737cda1d640d2067b417ec270fbb623e3f960.zip |
Check LSP capabilities before using them
Diffstat (limited to 'test/lsp/test_did_save_event.vader')
-rw-r--r-- | test/lsp/test_did_save_event.vader | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/lsp/test_did_save_event.vader b/test/lsp/test_did_save_event.vader index b696ee4b..428135fb 100644 --- a/test/lsp/test_did_save_event.vader +++ b/test/lsp/test_did_save_event.vader @@ -14,7 +14,6 @@ Before: let g:ale_lsp_next_message_id = 1 let g:ale_run_synchronously = 1 let g:message_list = [] - let g:Callback = '' function! LanguageCallback() abort return 'foobar' @@ -34,9 +33,7 @@ Before: \ }) let g:ale_linters = {'foobar': ['dummy_linter']} - function! ale#lsp_linter#StartLSP(buffer, linter, callback) abort - let g:Callback = a:callback - + function! ale#lsp_linter#StartLSP(buffer, linter) abort let l:conn = ale#lsp#NewConnection({}) let l:conn.id = 347 let l:conn.open_documents = {a:buffer : -1} @@ -59,7 +56,6 @@ After: unlet! b:ale_enabled unlet! b:ale_linters - unlet! g:Callback unlet! g:message_list delfunction LanguageCallback |