vscode_deno
vscode_deno copied to clipboard
Cannot go to npm dependency definition
Describe the bug
cmd+click (or ctrl+click on windows) doesn't seem to work on npm specifier paths.
To Reproduce
- Create
deno.json
with these contents:
{
"imports": {
"svelte": "npm:[email protected]",
"svelte/": "npm:/[email protected]/"
}
}
- Create
foo.ts
with these contents:
import * as sv from "svelte/internal";
console.log(sv);
- Run
deno run -A foo.ts
- Open
foo.ts
in vscode and try to click on thesvelte/internal
import specifier.
Expected behavior
cmd+click (or ctrl+click on windows) should go to the source definition.
Screenshots
https://github.com/denoland/vscode_deno/assets/1062408/090e1ff2-d307-4cf6-bb85-09d7b7234533
Versions
vscode: insiders from 2023-12-05 deno: 1.38.5 extension: v3.28.0