Since a few versions, Visual Code constantly messes up my tsconfig.json by adding individual files to the include array when I add or rename files in my project.
Is there any setting to tell VC to NOT do that?
The TypeScript extension has a setting that updates imports on file move, this might be the culprit.
Typescript › Update Imports On File Move: Enabled
Enable/disable automatic updating of import paths when you rename or move a file in VS Code. Requires using TypeScript 2.9 or newer in the workspace.
Setting typescript.updateImportsOnFileMove.enabled to never will stop it from adding the files to include. You can also set it to prompt if you want to be asked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With