Phil
Phil
DDeno
Created by Phil on 10/4/2024 in #help
No Auto Complete Suggestions for `@/` Alias in Deno with VSCode
Hi,
I’m using Deno with VSCode, and the @/ alias works fine for imports but I don’t get auto complete suggestions for files in my src/ folder. I have to manually type the file paths for it to work. For example this works:
import {} from "@/decorators.ts";
import {} from "@/decorators.ts";
But I had to write decorators.ts manually because no auto complete suggestions were provided. Here’s my deno.json:
{
"imports": {
"@/": "./src/",
"@std/assert": "jsr:@std/assert@1"
}
}
{
"imports": {
"@/": "./src/",
"@std/assert": "jsr:@std/assert@1"
}
}
And my VSCode settings:
{
"deno.enable": true,
"deno.suggest.imports.autoDiscover": true
}
{
"deno.enable": true,
"deno.suggest.imports.autoDiscover": true
}
Any ideas on how to get auto complete working?
4 replies