diff options
author | Alex LaFroscia <alex@lafroscia.com> | 2021-02-20 11:09:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 16:09:28 +0000 |
commit | d340710fcfbd4db7bd2a8e4cd126306d4d7ef4e2 (patch) | |
tree | cfd8c202bc4088c64163633e4d4a4a78f0cdcdec /test/lsp/test_lsp_client_messages.vader | |
parent | 3ea887d2f4d43dd55d81213517344226f6399ed6 (diff) | |
download | ale-d340710fcfbd4db7bd2a8e4cd126306d4d7ef4e2.zip |
Support going to type definition with tsserver (#3545)
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 bc91bf68..754073ec 100644 --- a/test/lsp/test_lsp_client_messages.vader +++ b/test/lsp/test_lsp_client_messages.vader @@ -307,6 +307,19 @@ Execute(ale#lsp#tsserver_message#Definition() should return correct messages): \ ], \ ale#lsp#tsserver_message#Definition(bufnr(''), 347, 12) +Execute(ale#lsp#tsserver_message#TypeDefinition() should return correct messages): + AssertEqual + \ [ + \ 0, + \ 'ts@typeDefinition', + \ { + \ 'file': ale#path#Simplify(g:dir . '/foo/bar.ts'), + \ 'line': 347, + \ 'offset': 12, + \ } + \ ], + \ ale#lsp#tsserver_message#TypeDefinition(bufnr(''), 347, 12) + Execute(ale#lsp#tsserver_message#References() should return correct messages): AssertEqual \ [ |