diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-26 22:27:08 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-26 22:27:08 +0000 |
commit | 21b460bb1dcb099786ebe57d8cd6ec4fd9618861 (patch) | |
tree | 6c65fa3b3408187e5cd9aa67baa5ca6fab75428b /test/lsp/test_lsp_client_messages.vader | |
parent | 01318b6930c536cb63f09541bde11a9d48d4a12e (diff) | |
download | ale-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.vader | 14 |
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 |