diff options
author | sigmaSd <bedisnbiba@gmail.com> | 2022-10-01 19:02:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 20:02:25 +0200 |
commit | a6618dc01c890363bdbcc5f689389cbca1e8fb75 (patch) | |
tree | 8183ae41bf64b25a2e1a02527de9bd10b0e770b2 /cli/tests/integration/lsp_tests.rs | |
parent | ecfafda9d8ead19cb35708f310e49176db2ec2b5 (diff) |
lsp: use deno:/asset instead of deno:asset (#16023)
Make offering "virtual documents" via the lsp easier to parse. `deno:`
can be ambiguous to parse by editors (can conflict with linux paths)
Neovim recently landed a PR https://github.com/neovim/neovim/pull/19797
that allows it to parse `scheme:/` this PR should make deno lsp work
correctly in neovim
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 1bc06991b..130ffe742 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -987,7 +987,7 @@ fn lsp_hover_asset() { "deno/virtualTextDocument", json!({ "textDocument": { - "uri": "deno:asset/lib.deno.shared_globals.d.ts" + "uri": "deno:/asset/lib.deno.shared_globals.d.ts" } }), ) @@ -998,7 +998,7 @@ fn lsp_hover_asset() { "textDocument/hover", json!({ "textDocument": { - "uri": "deno:asset/lib.es2015.symbol.wellknown.d.ts" + "uri": "deno:/asset/lib.es2015.symbol.wellknown.d.ts" }, "position": { "line": 109, @@ -2810,7 +2810,7 @@ fn lsp_code_lens_non_doc_nav_tree() { "deno/virtualTextDocument", json!({ "textDocument": { - "uri": "deno:asset/lib.deno.shared_globals.d.ts" + "uri": "deno:/asset/lib.deno.shared_globals.d.ts" } }), ) @@ -2822,7 +2822,7 @@ fn lsp_code_lens_non_doc_nav_tree() { "textDocument/codeLens", json!({ "textDocument": { - "uri": "deno:asset/lib.deno.shared_globals.d.ts" + "uri": "deno:/asset/lib.deno.shared_globals.d.ts" } }), ) |