summaryrefslogtreecommitdiff
path: root/test/lsp
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-21 00:21:45 +0000
committerw0rp <devw0rp@gmail.com>2017-11-21 00:21:45 +0000
commit7ea3aba5e587f1993c0377ed270b5cbd823e3711 (patch)
treea21347b43e4c6fb24dfe350e06eb7db1e21f7b3e /test/lsp
parent5a3a6955863fde86ef318a1fc6c3ad5d23429c0a (diff)
downloadale-7ea3aba5e587f1993c0377ed270b5cbd823e3711.zip
Quietly add go to definition support for tsserver
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 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)