vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Cannot go to npm dependency definition

Open marvinhagemeister opened this issue 6 months ago • 0 comments

Describe the bug

cmd+click (or ctrl+click on windows) doesn't seem to work on npm specifier paths.

To Reproduce

  1. Create deno.json with these contents:
{
  "imports": {
    "svelte": "npm:[email protected]",
    "svelte/": "npm:/[email protected]/"
  }
}
  1. Create foo.ts with these contents:
import * as sv from "svelte/internal";
console.log(sv);
  1. Run deno run -A foo.ts
  2. Open foo.ts in vscode and try to click on the svelte/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

marvinhagemeister avatar Dec 08 '23 10:12 marvinhagemeister