summaryrefslogtreecommitdiff
path: root/test/completion/test_lsp_completion_parsing.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/test_lsp_completion_parsing.vader')
-rw-r--r--test/completion/test_lsp_completion_parsing.vader26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/completion/test_lsp_completion_parsing.vader b/test/completion/test_lsp_completion_parsing.vader
index a8e00260..ef954564 100644
--- a/test/completion/test_lsp_completion_parsing.vader
+++ b/test/completion/test_lsp_completion_parsing.vader
@@ -486,7 +486,7 @@ Execute(Should handle completion messages with textEdit objects):
\ {
\ 'detail': 'PlayTimeCallback',
\ 'filterText': 'next_callback',
- \ 'insertText': 'next_callback',
+ \ 'insertText': 'ignoreme',
\ 'insertTextFormat': 1,
\ 'kind': 6,
\ 'label': ' next_callback',
@@ -502,3 +502,27 @@ Execute(Should handle completion messages with textEdit objects):
\ ],
\ },
\ })
+
+Execute(Should handle completion messages with the deprecated insertText attribute):
+ AssertEqual
+ \ [
+ \ {'word': 'next_callback', 'menu': 'PlayTimeCallback', 'info': '', 'kind': 'v', 'icase': 1},
+ \ ],
+ \ ale#completion#ParseLSPCompletions({
+ \ 'id': 226,
+ \ 'jsonrpc': '2.0',
+ \ 'result': {
+ \ 'isIncomplete': v:false,
+ \ 'items': [
+ \ {
+ \ 'detail': 'PlayTimeCallback',
+ \ 'filterText': 'next_callback',
+ \ 'insertText': 'next_callback',
+ \ 'insertTextFormat': 1,
+ \ 'kind': 6,
+ \ 'label': ' next_callback',
+ \ 'sortText': '3ee19999next_callback',
+ \ },
+ \ ],
+ \ },
+ \ })