summaryrefslogtreecommitdiff
path: root/test/lsp/test_lsp_client_messages.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-26 22:27:08 +0000
committerw0rp <devw0rp@gmail.com>2017-11-26 22:27:08 +0000
commit21b460bb1dcb099786ebe57d8cd6ec4fd9618861 (patch)
tree6c65fa3b3408187e5cd9aa67baa5ca6fab75428b /test/lsp/test_lsp_client_messages.vader
parent01318b6930c536cb63f09541bde11a9d48d4a12e (diff)
downloadale-21b460bb1dcb099786ebe57d8cd6ec4fd9618861.zip
Implement go to defintion for LSP linters
Diffstat (limited to 'test/lsp/test_lsp_client_messages.vader')
-rw-r--r--test/lsp/test_lsp_client_messages.vader14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader
index 346f79ca..3abdd8a1 100644
--- a/test/lsp/test_lsp_client_messages.vader
+++ b/test/lsp/test_lsp_client_messages.vader
@@ -129,6 +129,20 @@ Execute(ale#lsp#message#Completion() should return correct messages with a trigg
\ }
\ ],
\ ale#lsp#message#Completion(bufnr(''), 12, 34, '.')
+ \
+Execute(ale#lsp#message#Definition() should return correct messages):
+ AssertEqual
+ \ [
+ \ 0,
+ \ 'textDocument/definition',
+ \ {
+ \ 'textDocument': {
+ \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
+ \ },
+ \ 'position': {'line': 11, 'character': 34},
+ \ }
+ \ ],
+ \ ale#lsp#message#Definition(bufnr(''), 12, 34)
Execute(ale#lsp#tsserver_message#Open() should return correct messages):
AssertEqual