Support workspace specific typescript version
Extension Version
0.20251013.2
VS Code Version
1.99.3
Operating system Version
26.1 Beta (25B5062e)
Steps to reproduce
Issue
Ability to select project typescript
Please be more specific about the issue here.
I think they are asking for workspace-specific tsdk, which is supported with typescript.native-preview.tsdk, but just doesn't have the VS Code UI bits in place.
Please be more specific about the issue here.
I'm sorry I mean the workspace-specific tsdk as @jakebailey explains (thanks!).
Found this thread as I want to use the extension with the latest (nightly) version of the compiler. I'm not exactly sure why, but it seems typescript.native-preview.tsdk isn't picked up in my case. Not sure if this is an issue with my editor (Cursor).
That being said, a (dangerous) workaround is to replace the included binary of the extension itself:
- Install the npm package
- Copy the lib from the npm package to the extension
- Reload the editor
Oh my bad, it should be the directory, not the file!
You shouldn't have to put the platform specific things in there; unless there's a bug, it should work to point it to node_modules/@typescript/native-preview itself...
node_modules/@typescript/native-preview works great for me.