Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace members do not appear in the import suggestions #1256

Open
kawmra opened this issue Feb 19, 2025 · 0 comments
Open

Workspace members do not appear in the import suggestions #1256

kawmra opened this issue Feb 19, 2025 · 0 comments

Comments

@kawmra
Copy link

kawmra commented Feb 19, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant