From 7ea3aba5e587f1993c0377ed270b5cbd823e3711 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 21 Nov 2017 00:21:45 +0000 Subject: Quietly add go to definition support for tsserver --- test/lsp/test_lsp_client_messages.vader | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/lsp/test_lsp_client_messages.vader') 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) -- cgit v1.2.3