alaa
alaa5mo ago

import suggestions not working as intended (vscode)

Hello, import suggestions (symbols not known to file) not working for me as intended on deno latest (vscode): When symbol not known:
No description
3 Replies
alaa
alaaOP5mo ago
when import statement written manually it works:
No description
alaa
alaaOP5mo ago
deno jsonc:
{
"name": "test-lib",
"version": "0.1.0",
"tasks": {
"install": "deno install --allow-scripts",
"start": "deno run ./src/main.ts",
"dev": "deno run --watch ./src/main.ts",
"test": "deno test",
"format": "deno run -A npm:@biomejs/biome format ./src",
"lint": "biome lint --error-on-warnings ./src"
},
"imports": {
"@biomejs/biome": "npm:@biomejs/biome@^1.9.4",
"@std/assert": "jsr:@std/assert@1"
},
"nodeModulesDir": "auto",
"publish": {
"include": ["src", "LICENSE"],
"exclude": ["src/tests"]
},
"exports": {
".": "./src/mod.ts"
}
}
{
"name": "test-lib",
"version": "0.1.0",
"tasks": {
"install": "deno install --allow-scripts",
"start": "deno run ./src/main.ts",
"dev": "deno run --watch ./src/main.ts",
"test": "deno test",
"format": "deno run -A npm:@biomejs/biome format ./src",
"lint": "biome lint --error-on-warnings ./src"
},
"imports": {
"@biomejs/biome": "npm:@biomejs/biome@^1.9.4",
"@std/assert": "jsr:@std/assert@1"
},
"nodeModulesDir": "auto",
"publish": {
"include": ["src", "LICENSE"],
"exclude": ["src/tests"]
},
"exports": {
".": "./src/mod.ts"
}
}
Problem only happens with remote libs (jsr/npm), no problem with local files (.ts) versions latest on both deno and vscode extension up 🙏
Ánh Tạ
Ánh Tạ3mo ago
I encounter the same issue. Additionally, it is quite challenging to import a new declaration, such as a type or class, from a remote package.

Did you find this page helpful?