summaryrefslogtreecommitdiff
path: root/test/lsp/test_lsp_client_messages.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsp/test_lsp_client_messages.vader')
-rw-r--r--test/lsp/test_lsp_client_messages.vader29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader
index c6d82b60..bd0cd102 100644
--- a/test/lsp/test_lsp_client_messages.vader
+++ b/test/lsp/test_lsp_client_messages.vader
@@ -101,6 +101,35 @@ Execute(ale#lsp#message#DidClose() should return correct messages):
\ ],
\ ale#lsp#message#DidClose(bufnr(''))
+Execute(ale#lsp#message#Completion() should return correct messages):
+ AssertEqual
+ \ [
+ \ 0,
+ \ 'textDocument/completion',
+ \ {
+ \ 'textDocument': {
+ \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
+ \ },
+ \ 'position': {'line': 11, 'character': 33},
+ \ }
+ \ ],
+ \ ale#lsp#message#Completion(bufnr(''), 12, 34, '')
+
+Execute(ale#lsp#message#Completion() should return correct messages with a trigger charaacter):
+ AssertEqual
+ \ [
+ \ 0,
+ \ 'textDocument/completion',
+ \ {
+ \ 'textDocument': {
+ \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
+ \ },
+ \ 'position': {'line': 11, 'character': 33},
+ \ 'context': {'triggerKind': 2, 'triggerCharacter': '.'},
+ \ }
+ \ ],
+ \ ale#lsp#message#Completion(bufnr(''), 12, 34, '.')
+
Execute(ale#lsp#tsserver_message#Open() should return correct messages):
AssertEqual
\ [