ChrisGoC
Denoβ€’2y agoβ€’
3 replies
ChrisGo

Import-IntelliSense with Fresh and VSCode doesn't work as expected

Hey. I'm fairly new to Deno and Fresh so I assume I'm simply missing something. I've created a Fresh project through the official guide, installed and enabled the Deno extension in VSCode. However when trying to use the Auto-Import feature with Intellisense it often doesn't pick up new files or creates non-optimal statements.
- It doesn't pick up new files in non-standard folders. E. g. I've created a lib/ folder besides components/, islands/ and so on. Is this allowed?
- Import suggestions for packages like std contain the explicit version and don't respect the import map from deno.json. So I'll get an import statement like import { basename } from "https://deno.land/std@0.211.0/path/basename.ts"; instead of import { basename } from "$std/path/basename.ts"; or import { basename } from "@std/path/basename";
Was this page helpful?