summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_redundant_tsserver_rendering_avoided.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_redundant_tsserver_rendering_avoided.vader b/test/test_redundant_tsserver_rendering_avoided.vader
index bde5d152..05660d4e 100644
--- a/test/test_redundant_tsserver_rendering_avoided.vader
+++ b/test/test_redundant_tsserver_rendering_avoided.vader
@@ -1,8 +1,10 @@
Before:
Save g:ale_buffer_info
Save g:ale_disable_lsp
+ Save g:ale_lsp_suggestions
let g:ale_disable_lsp = 0
+ let g:ale_lsp_suggestions = 1
unlet! b:ale_disable_lsp
function! CreateError(type, message) abort
@@ -146,6 +148,14 @@ Execute(Subsequent empty lists should be ignored - suggestion):
Assert !g:ale_handle_loclist_called
+Execute(You should be able to disable suggestions):
+ let g:ale_lsp_suggestions = 0
+ let g:ale_buffer_info[bufnr('')].suggestion_loclist = []
+
+ call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', 'x'))
+
+ Assert !g:ale_handle_loclist_called
+
Execute(Empty then non-empty suggestion messages should be handled):
let g:ale_buffer_info[bufnr('')].suggestion_loclist = []