PhilP
Deno16mo ago
3 replies
Phil

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";


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"
  }
}


And my VSCode settings:

{
    "deno.enable": true,
    "deno.suggest.imports.autoDiscover": true
}


Any ideas on how to get auto complete working?
Was this page helpful?