taco
JSDoc inline import with Deno LSP does not find or apply type from npm package
Hello!
When using the Deno LSP (tested in both VSCode with Deno for VSCode v3.43.2 and neovim with coc-deno 3.15.0), JSDoc imports from npm packages are not working.
In the same project before initializing the Deno LSP, everything is found and functional with tsserver.
I'm running Deno 2.1.3-1 on Arch Linux, kernel 6.6.63-1-lts
Steps to reproduce, in a new folder:
This results in this deno.json:
In index.js:
Removing the . after import('pg') and placing it back causes tsserver to give all types from @types/pg. Nothing happens with the Deno LSP.
The same exact thing can be seen with
With the Deno LSP, the type for pool is:
With tsserver, the type is:
The deno LSP status is in the attached text.
1 replies