Open marko1010 opened 1 week ago
Same issue here. No idea how to fix.
I've tried increasing typescript.tsserver.maxTsServerMemory
too
Are you using the wsl remote extension to open the workspace or directly opening the wsl folder through windows? It looks it could be the second case, which you almost almost never want. In the true wsl case, the typescript server will automatically run under the wsl linux environment too.
Can you try using the wsl extension to open the workspace instead?
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Intellisense will not work for any of the imports. On Windows (outside of WSL) it works fine.
WSL:
Windows:
It also doesn't work when developing via Remote SSH extension.
It could be something on my end but I spent countless hours trying to fix this to no avail.
It starts TS server fine (screenshot of TypeScript output window), but it uses tsserver from the host and not WSL. Could that be a problem?
I try to force it to use WSL's tsserver by specifying path in workspace json settings: "typescript.tsdk": "/home/marko/.nvm/versions/node/v20.18.0/lib/node_modules/typescript/lib"
But I get the following error despite the fact that the file exists at the given path:
Notice how the error message shows backslashes instead of forward slashes in the file path