Skip to content

files.exclude have extra globs #247885

Closed as not planned
Closed as not planned
@studgeek

Description

@studgeek

Does this issue occur when all extensions are disabled?: Yes

Version: 1.99.3
Commit: 17baf84
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.6.0

The default values for files.exclude include doublestar glob suffixes, but I since #137872 I think they are no longer needed? If so, they should be removed so that default serves as a better usage example.

Current default:

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

Suggested defaults:

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

If they are still needed then documentation should be updated to explain how watcherExclude globbing works differently from files.exclude.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions