user3612643
user3612643

Reputation: 5772

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?

Upvotes: 6

Views: 1194

Answers (1)

mehmetseckin
mehmetseckin

Reputation: 3107

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.

Upvotes: 7

Related Questions