Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Code constantly changes included files in tsconfig.json

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?

like image 506
user3612643 Avatar asked Jul 31 '26 13:07

user3612643


1 Answers

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.

like image 175
mehmetseckin Avatar answered Aug 03 '26 01:08

mehmetseckin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!