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/completion | |
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/completion')
-rw-r--r-- | test/completion/test_ale_import_command.vader | 4 | ||||
-rw-r--r-- | test/completion/test_lsp_completion_messages.vader | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/completion/test_ale_import_command.vader b/test/completion/test_ale_import_command.vader index d36caae2..1ce3a2a2 100644 --- a/test/completion/test_ale_import_command.vader +++ b/test/completion/test_ale_import_command.vader @@ -368,7 +368,7 @@ Execute(ALEImport should request imports correctly for language servers): AssertEqual \ [ \ [0, 'textDocument/completion', { - \ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}, + \ 'textDocument': {'uri': ale#path#ToFileURI(expand('%:p'))}, \ 'position': {'character': 6, 'line': 1} \ }], \ ], @@ -514,7 +514,7 @@ Execute(ALEImport should tell the user when no completions were found from a lan AssertEqual \ [ \ [0, 'textDocument/completion', { - \ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}, + \ 'textDocument': {'uri': ale#path#ToFileURI(expand('%:p'))}, \ 'position': {'character': 6, 'line': 1} \ }], \ ], diff --git a/test/completion/test_lsp_completion_messages.vader b/test/completion/test_lsp_completion_messages.vader index 87847777..f6aa332b 100644 --- a/test/completion/test_lsp_completion_messages.vader +++ b/test/completion/test_lsp_completion_messages.vader @@ -233,13 +233,13 @@ Execute(The right message should be sent for the initial LSP request): \ [ \ [1, 'textDocument/didChange', { \ 'textDocument': { - \ 'uri': ale#path#ToURI(expand('%:p')), + \ 'uri': ale#path#ToFileURI(expand('%:p')), \ 'version': g:ale_lsp_next_version_id - 1, \ }, \ 'contentChanges': [{'text': join(getline(1, '$'), "\n") . "\n"}] \ }], \ [0, 'textDocument/completion', { - \ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}, + \ 'textDocument': {'uri': ale#path#ToFileURI(expand('%:p'))}, \ 'position': {'line': 0, 'character': 2}, \ }], \ ], @@ -294,13 +294,13 @@ Execute(Two completion requests shouldn't be sent in a row): \ [ \ [1, 'textDocument/didChange', { \ 'textDocument': { - \ 'uri': ale#path#ToURI(expand('%:p')), + \ 'uri': ale#path#ToFileURI(expand('%:p')), \ 'version': g:ale_lsp_next_version_id - 1, \ }, \ 'contentChanges': [{'text': join(getline(1, '$'), "\n") . "\n"}] \ }], \ [0, 'textDocument/completion', { - \ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}, + \ 'textDocument': {'uri': ale#path#ToFileURI(expand('%:p'))}, \ 'position': {'line': 0, 'character': 2}, \ }], \ ], |