summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-27 08:57:12 +0100
committerw0rp <devw0rp@gmail.com>2020-08-27 08:57:12 +0100
commita955f5dfa8811a44c9e871b06b55c0bcad13f0d9 (patch)
tree1b590afa6f9d8651be5027156452876b1acba9d2 /test/completion
parent396fba7cca5bb6cd5774173241e3e606045e1c46 (diff)
downloadale-a955f5dfa8811a44c9e871b06b55c0bcad13f0d9.zip
#3312 - Just check if additionalTextEdits is non-empty
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/test_lsp_completion_parsing.vader46
1 files changed, 2 insertions, 44 deletions
diff --git a/test/completion/test_lsp_completion_parsing.vader b/test/completion/test_lsp_completion_parsing.vader
index 395314d7..b8e71320 100644
--- a/test/completion/test_lsp_completion_parsing.vader
+++ b/test/completion/test_lsp_completion_parsing.vader
@@ -537,7 +537,6 @@ Execute(Should handle completion messages with the deprecated insertText attribu
Execute(Should handle completion messages with additionalTextEdits when ale_completion_autoimport is turned on):
let g:ale_completion_autoimport = 1
- let b:ale_completion_info = {'line': 30}
AssertEqual
\ [
@@ -592,19 +591,6 @@ Execute(Should handle completion messages with additionalTextEdits when ale_comp
\ {
\ 'range': {
\ 'start': {
- \ 'line': 29,
- \ 'character': 10,
- \ },
- \ 'end': {
- \ 'line': 29,
- \ 'character': 10,
- \ },
- \ },
- \ 'newText': 'next_callback',
- \ },
- \ {
- \ 'range': {
- \ 'start': {
\ 'line': 10,
\ 'character': 1,
\ },
@@ -645,19 +631,6 @@ Execute(Should not handle completion messages with additionalTextEdits when ale_
\ {
\ 'range': {
\ 'start': {
- \ 'line': 29,
- \ 'character': 10,
- \ },
- \ 'end': {
- \ 'line': 29,
- \ 'character': 10,
- \ },
- \ },
- \ 'newText': 'next_callback',
- \ },
- \ {
- \ 'range': {
- \ 'start': {
\ 'line': 10,
\ 'character': 1,
\ },
@@ -674,9 +647,8 @@ Execute(Should not handle completion messages with additionalTextEdits when ale_
\ },
\ })
-Execute(Should still handle completion messages with additionalTextEdits with ale_completion_autoimport turned off, if edits all start on the line):
+Execute(Should still handle completion messages with empty additionalTextEdits with ale_completion_autoimport turned off):
let g:ale_completion_autoimport = 0
- let b:ale_completion_info = {'line': 30}
AssertEqual
\ [
@@ -702,21 +674,7 @@ Execute(Should still handle completion messages with additionalTextEdits with al
\ 'kind': 6,
\ 'label': ' next_callback',
\ 'sortText': '3ee19999next_callback',
- \ 'additionalTextEdits': [
- \ {
- \ 'range': {
- \ 'start': {
- \ 'line': 29,
- \ 'character': 10,
- \ },
- \ 'end': {
- \ 'line': 29,
- \ 'character': 10,
- \ },
- \ },
- \ 'newText': 'next_callback',
- \ },
- \ ],
+ \ 'additionalTextEdits': [],
\ },
\ ],
\ },