import
i keep experiencing LSP meltdowns where random imports just stop being understood at random points in development and the only way to fix it is restarting extension hosts. sometimes that won't work either and i'll have to do a full IDE restart. zero runtime issues.
initially the issue was happening with discordjs randomly, now it's happening with standard libs too. nothing special in project configuration just deno init and got to work, here's my deno.json:
7 Replies
can't find anybody having the same issue as me; this has never happened with regular typescript lsp
finally had the discordjs issue
clicked the file button at "declares REST [link] locally"
and got this error
[Window Title]
Visual Studio Code
[Main Instruction]
Unable to open 'index.d.mts'
[Content]
Unable to resolve resource c:/Users/username/AppData/Local/deno/npm/registry.npmjs.org/discord.js/14.16.3/typings/index.d.mts
[OK] [Cancel]
and the file does exist
it fixes when i close deno?????????
so damn confused here
i'm using Deno.watchFs, debounce, for await syntax
deno isn't even open anymore and the bug happens again :^)
it seems completely random but happens while im coding; left open vscode for a few hours while i went out and i experienced no errors when i got back until later