diff options
author | yoshi1123 <65735241+yoshi1123@users.noreply.github.com> | 2022-03-04 14:03:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 19:03:27 +0000 |
commit | e490e87a60af7c5c630434aa7d980d01b4d03ecc (patch) | |
tree | e7629ff7c46a20fd802e935c6a79cbbe1e6965ff /test/lsp/test_lsp_client_messages.vader | |
parent | b42153eb1786fbff1c926e60c23ba82b0108f0cc (diff) | |
download | ale-e490e87a60af7c5c630434aa7d980d01b4d03ecc.zip |
Add eclipselsp jdt:// support for textDocument/definition (#4030)
This patch adds support for opening jdt:// links on "go to definition" requests returned by Java language servers.
Co-authored-by: w0rp <devw0rp@gmail.com>
Diffstat (limited to 'test/lsp/test_lsp_client_messages.vader')
-rw-r--r-- | test/lsp/test_lsp_client_messages.vader | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader index 4c6b0ffa..65fdaa67 100644 --- a/test/lsp/test_lsp_client_messages.vader +++ b/test/lsp/test_lsp_client_messages.vader @@ -44,7 +44,7 @@ Execute(ale#lsp#message#DidOpen() should return correct messages): \ 'textDocument/didOpen', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ 'languageId': 'typescript', \ 'version': 12, \ 'text': "foo()\nbar()\nbaz()\n", @@ -62,7 +62,7 @@ Execute(ale#lsp#message#DidChange() should return correct messages): \ 'textDocument/didChange', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ 'version': 34, \ }, \ 'contentChanges': [{'text': "foo()\nbar()\nbaz()\n"}], @@ -84,7 +84,7 @@ Execute(ale#lsp#message#DidSave() should return correct messages): \ 'textDocument/didSave', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ } \ ], @@ -97,7 +97,7 @@ Execute(ale#lsp#message#DidSave() should return correct message with includeText \ 'textDocument/didSave', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ 'version': 1, \ }, \ 'text': ale#util#GetBufferContents(bufnr('')), @@ -112,7 +112,7 @@ Execute(ale#lsp#message#DidClose() should return correct messages): \ 'textDocument/didClose', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ } \ ], @@ -125,7 +125,7 @@ Execute(ale#lsp#message#Completion() should return correct messages): \ 'textDocument/completion', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ 'position': {'line': 11, 'character': 33}, \ } @@ -139,7 +139,7 @@ Execute(ale#lsp#message#Completion() should return correct messages with a trigg \ 'textDocument/completion', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ 'position': {'line': 11, 'character': 33}, \ 'context': {'triggerKind': 2, 'triggerCharacter': '.'}, @@ -154,7 +154,7 @@ Execute(ale#lsp#message#Definition() should return correct messages): \ 'textDocument/definition', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ 'position': {'line': 11, 'character': 33}, \ } @@ -168,7 +168,7 @@ Execute(ale#lsp#message#TypeDefinition() should return correct messages): \ 'textDocument/typeDefinition', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ 'position': {'line': 11, 'character': 33}, \ } @@ -182,7 +182,7 @@ Execute(ale#lsp#message#References() should return correct messages): \ 'textDocument/references', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ 'position': {'line': 11, 'character': 33}, \ 'context': {'includeDeclaration': v:false}, @@ -208,7 +208,7 @@ Execute(ale#lsp#message#Hover() should return correct messages): \ 'textDocument/hover', \ { \ 'textDocument': { - \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), + \ 'uri': ale#path#ToFileURI(g:dir . '/foo/bar.ts'), \ }, \ 'position': {'line': 11, 'character': 33}, \ } |