Skip to content

Allow extensions to contribute defaults for built in configurations #46851

@DanTup

Description

@DanTup

Currently Code has special knowledge of some folders that shouldn't be looked in, such as:

"files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/**": true
  },

For the same reason that these folders are in there, extensions may wish to contribute their own folders (for example we'd like to exclude the .dart_tool folder).

As far as I can tell, this isn't currently possible. I tried adding it to configurationDefaults in package.json in the hope I'd be merged with that object but it just seems to have no effect.

Is there a way that I can provide values to be added to files.watcherExclude, files.exclude, search.exclude?

Metadata

Metadata

Assignees

Labels

configVS Code configuration, set up issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions