summaryrefslogtreecommitdiff
path: root/test/lsp
diff options
context:
space:
mode:
authorAlex LaFroscia <alex@lafroscia.com>2021-02-20 11:09:28 -0500
committerGitHub <noreply@github.com>2021-02-20 16:09:28 +0000
commitd340710fcfbd4db7bd2a8e4cd126306d4d7ef4e2 (patch)
treecfd8c202bc4088c64163633e4d4a4a78f0cdcdec /test/lsp
parent3ea887d2f4d43dd55d81213517344226f6399ed6 (diff)
downloadale-d340710fcfbd4db7bd2a8e4cd126306d4d7ef4e2.zip
Support going to type definition with tsserver (#3545)
Diffstat (limited to 'test/lsp')
-rw-r--r--test/lsp/test_lsp_client_messages.vader13
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
\ [