typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Support workspace specific typescript version

Open deathemperor opened this issue 5 months ago • 6 comments

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

deathemperor avatar Oct 24 '25 04:10 deathemperor

Please be more specific about the issue here.

ahejlsberg avatar Oct 24 '25 22:10 ahejlsberg

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.

jakebailey avatar Oct 24 '25 22:10 jakebailey

Please be more specific about the issue here.

I'm sorry I mean the workspace-specific tsdk as @jakebailey explains (thanks!).

Image

deathemperor avatar Oct 27 '25 02:10 deathemperor

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).

Image

That being said, a (dangerous) workaround is to replace the included binary of the extension itself:

  1. Install the npm package
  2. Copy the lib from the npm package to the extension
  3. Reload the editor

thien-do avatar Dec 03 '25 09:12 thien-do

Oh my bad, it should be the directory, not the file!

Image

thien-do avatar Dec 03 '25 09:12 thien-do

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...

jakebailey avatar Dec 03 '25 16:12 jakebailey

node_modules/@typescript/native-preview works great for me.

VdustR avatar Dec 20 '25 07:12 VdustR