import suggestions not working as intended (vscode)
Hello, import suggestions (symbols not known to file) not working for me as intended on deno latest (vscode):
When symbol not known:

16 Replies
when import statement written manually it works:

deno jsonc:
Problem only happens with remote libs (jsr/npm), no problem with local files (.ts)
versions latest on both deno and vscode extension
up 🙏
I encounter the same issue. Additionally, it is quite challenging to import a new declaration, such as a type or class, from a remote package.
@alaa were you able to find a fix?
Yes, move to bun
After adding a package, did you use deno install? As far as I've seen, Deno doesn't blanket download everything listed in the import map until you either tell it to via deno install or until you use it somewhere in the code.
If you manually update a file with the import line using the mapped alias then it should cache the dependency and start offering import suggestions as you would expect.
Let me send a screenshot so you get what i mean.
@Mr.Possumz this is what I meant
yes because in the second screenshot you've downloaded the dependencies and installed them in your node modules project. If you run
deno install it will do the same thingYH
These are two different projects. We have a call to look at it though
I will be very happy @Mr.Possumz
facing the same issue

Seems its a general issue
I noticed there is a related PR for the issue probably
https://github.com/denoland/deno/pull/28131
GitHub
fix(lsp): improve auto-imports to take into account only package ex...
TypeScript's auto-import implementation is implemented specifically for node_modules. Additionally, it seems to traverse through all the source files in a program then filter out any result...
OKay
Thanks


