Vincent
Vincent3w ago

Auto Import Not Working

Hi, I just created a new Deno project using vscode as an editor and am trying to get auto importing up and running. I have the Deno extension installed and enabled in my workspace settings.json:
{
"deno.enable": true,
"deno.lint": true
}
{
"deno.enable": true,
"deno.lint": true
}
However, I don't see standard intellisense for things like imports for packages I've added to my deno project
No description
2 Replies
Vincent
VincentOP3w ago
deno.json:
{
"tasks": {
"dev": "deno run --watch src/main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1",
}
}
{
"tasks": {
"dev": "deno run --watch src/main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1",
}
}
Ah, I think the packages dont populate in the cache until you actually import one into a file, after that, they're suggested on autocomplete
CCPatriot
CCPatriot2w ago
@Vincent I just created a similar post here experiencing the same issue. I also see that once you manually import once you can then reference package to autocomplete, but selecting that suggestion still won't add the import to the top of the file. Are you able to get import statements to be automatically added to your files?