summaryrefslogtreecommitdiff
path: root/test/test_find_references.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-06-15 09:53:13 +0100
committerw0rp <devw0rp@gmail.com>2018-06-15 10:01:28 +0100
commitbda89506bac3bf25d56a0ad8aef81a4cae848bb8 (patch)
treef95777c074a13ff01d06df5a8c0f0f60dd10fadf /test/test_find_references.vader
parentf1b72218c36cadd544f4363d726e8ee131a593a5 (diff)
downloadale-bda89506bac3bf25d56a0ad8aef81a4cae848bb8.zip
Lazy-load LSP linters, and check b:changedtick before notifying about changes
Diffstat (limited to 'test/test_find_references.vader')
-rw-r--r--test/test_find_references.vader9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test_find_references.vader b/test/test_find_references.vader
index 6ab8e8fb..c2290ca3 100644
--- a/test/test_find_references.vader
+++ b/test/test_find_references.vader
@@ -14,12 +14,18 @@ Before:
runtime autoload/ale/util.vim
runtime autoload/ale/preview.vim
- function! ale#linter#StartLSP(buffer, linter, callback) abort
+ function! ale#lsp_linter#StartLSP(buffer, linter, callback) abort
let g:Callback = a:callback
+ let l:conn = ale#lsp#NewConnection({})
+ let l:conn.id = 347
+ let l:conn.open_documents = {a:buffer : -1}
+
return {
+ \ 'buffer': a:buffer,
\ 'connection_id': 347,
\ 'project_root': '/foo/bar',
+ \ 'language_id': 'python',
\}
endfunction
@@ -39,6 +45,7 @@ Before:
endfunction
After:
+ call ale#lsp#RemoveConnectionWithID(347)
call ale#references#SetMap({})
call ale#test#RestoreDirectory()
call ale#linter#Reset()