You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a file MyFile.ts that imports a definition Library.d.ts which is written by an external TypeScript compiler (tsc -w).
When I change something in Library.ts, then tsc -w will overwrite its Library.d.ts, but VS Code does not "update" its editor view of MyFile.ts automatically (in order to show errors) - it only updates it on events like tab switch or close/open (and thus the Problems tab in the bottom is also not getting updated).
Would it somehow be possible to "check" for changes in background?
The text was updated successfully, but these errors were encountered:
kraftwer1
changed the title
Code seems to only refresh imported d.ts on file open
Code seems to only refresh imported d.ts on tab switch / file open
May 11, 2017
Do you have a tsconfig.json setup that includes both the ts file and the d.ts file? Try running the TypeScript: Go to Project Configuration command in each to make sure they are in the same project
But:
It only reports problems for the file that is currently open in the editor - not to the closed ones. Since I have several tsconfig.json files within my project (and no on the project root folder level), is there a way to specify VS Codes "main" tsconfig.json file? Or do I explicitly have to have one on root level?
Hmm, does the VS Code Problems panel actually support reporting "global" errors (meaning on non-opened files)? When I close the file, the error disappears.
I'm working on a file MyFile.ts that imports a definition Library.d.ts which is written by an external TypeScript compiler (tsc -w).
When I change something in Library.ts, then tsc -w will overwrite its Library.d.ts, but VS Code does not "update" its editor view of MyFile.ts automatically (in order to show errors) - it only updates it on events like tab switch or close/open (and thus the Problems tab in the bottom is also not getting updated).
Would it somehow be possible to "check" for changes in background?
The text was updated successfully, but these errors were encountered: