johnfn / ts2gd

💥 Compile TypeScript to GDScript for Godot
210 stars 14 forks source link

Force VSCode to update TS definitions when ts2gd generates new definitions #87

Open johnfn opened 2 years ago

johnfn commented 2 years ago

When I use ts2gd, I have to forcibly update VSCode (either close and reopen, or open up the relevant definition files) when TS definitions change. I actually believed this was required until I started using Prisma - when you create new TS definitions with Prisma (npx prisma generate), it actually somehow automatically gets TS to update to use the new definitions, no refreshing required.

I'd love for ts2gd to have the same functionality. I believe this is definitely one of the biggest pain points with ts2gd today.

adamuso commented 2 years ago

You can also do: Ctrl+Shift+P and TypeScript: Restart TS server (tab needs to be focused on TypeScript code) it will be easier than closing VSCode, but this does not fix the problem. :sweat_smile:

johnfn commented 2 years ago

Yeah, that's what I do right now :)

But Prisma somehow figured a way to restart the TS server without me doing anything!