diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-21 00:21:45 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-21 00:21:45 +0000 |
commit | 7ea3aba5e587f1993c0377ed270b5cbd823e3711 (patch) | |
tree | a21347b43e4c6fb24dfe350e06eb7db1e21f7b3e /test/lsp/test_lsp_client_messages.vader | |
parent | 5a3a6955863fde86ef318a1fc6c3ad5d23429c0a (diff) | |
download | ale-7ea3aba5e587f1993c0377ed270b5cbd823e3711.zip |
Quietly add go to definition support for tsserver
Diffstat (limited to 'test/lsp/test_lsp_client_messages.vader')
-rw-r--r-- | test/lsp/test_lsp_client_messages.vader | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader index a7660ce3..c6d82b60 100644 --- a/test/lsp/test_lsp_client_messages.vader +++ b/test/lsp/test_lsp_client_messages.vader @@ -177,3 +177,16 @@ Execute(ale#lsp#tsserver_message#CompletionEntryDetails() should return correct \ } \ ], \ ale#lsp#tsserver_message#CompletionEntryDetails(bufnr(''), 347, 12, ['foo', 'bar']) + +Execute(ale#lsp#tsserver_message#Definition() should return correct messages): + AssertEqual + \ [ + \ 0, + \ 'ts@definition', + \ { + \ 'file': ale#path#Winify(g:dir . '/foo/bar.ts'), + \ 'line': 347, + \ 'offset': 12, + \ } + \ ], + \ ale#lsp#tsserver_message#Definition(bufnr(''), 347, 12) |