DenoDDeno
Powered by
ChrisGoC
Denoβ€’3y 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/
lib/
folder besides
components/
components/
,
islands/
islands/
and so on. Is this allowed?
- Import suggestions for packages like
std
std
contain the explicit version and don't respect the import map from
deno.json
deno.json
. So I'll get an import statement like
import { basename } from "https://deno.land/std@0.211.0/path/basename.ts";
import { basename } from "https://deno.land/std@0.211.0/path/basename.ts";
instead of
import { basename } from "$std/path/basename.ts";
import { basename } from "$std/path/basename.ts";
or
import { basename } from "@std/path/basename";
import { basename } from "@std/path/basename";
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

IntelliSense doesn't work with npm:minio@8.0.2
yurkimusYyurkimus / help
16mo ago
Import path autocomplete doesn't work
babakfpBbabakfp / help
2y ago
VSCode "quick fix" for missing import doesn't use import map
sammeSsamme / help
3y ago
Deno NPM VSCode Intellisense
ybabtsYybabts / help
4y ago