vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Workspace members do not appear in the import suggestions

Open kawmra opened this issue 8 months ago • 0 comments

Describe the bug

When using a Deno Workspace, workspace members do not appear in the import suggestions.

Additionally, it does not appear in the quick fix too. (And, this repro did not reproduce, but in other production projects, quick fix shows import suggestions using relative paths.)

To Reproduce

.
├── app
│   ├── deno.json
│   └── main.ts
├── deno.json
└── utils
    ├── deno.json
    └── mod.ts
// .vscode/settings.json
{
  "deno.enable": true
}

// app/deno.json
{}

// utils/deno.json
{
  "name": "@internal/utils",
  "exports": "./mod.ts"
}

// deno.json
{
  "workspace": ["./app", "./utils"]
}
// app/main.ts
import { doSomething } from "" // not suggested
doSomething()

// utils/mod.ts
export function doSomething() {
  console.log("Hello");
}

Expected behavior

Workspace members appear in the import suggestions.

Screenshots

Image

Versions

vscode: 1.97.2 (Universal) deno: 2.2.0 extension: 3.43.3

kawmra avatar Feb 19 '25 15:02 kawmra