Support for new "!" file exclusion syntax

Aperta
#14,867 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Colengms ci sta già lavorando.

Dal 10/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug Language Service
Environment

OS: Kubuntu

VS Code

Version: 1.145.2
Commit: c4453f8ea430795f941c1b2ff6c9321135a74a02
Date: 2026-11-06T04:28:13Z
Electron: 43.8.3
ElectronBuildId: 15784459
Chromium: 150.0.7871.250
Node.js: 24.22.1
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.103.r41379698026.g3219c66
@github/copilot-sdk: 1.0.27.41379698026.g3219c66
OS: Linux x64 7.0.0-43-generic snap

CPPTools

Identifier ms-vscode.cpptools
Version 1.35.6
Bug Summary and Steps to Reproduce

Bug Summary:

Example/Minimal repository/workspace: https://github.com/BobbyTables42/VsCodeIntelliSenseTest.git
When I rebuild the intellisense database it does not find a single file.

Steps to reproduce:

  1. Open the workspace or (if already open) close all files and "Reload Window"
  2. "Reset IntelliSense Database"
  3. View C/C++ Console. The full rebuild looks like this:
LSP: (invoked) cpptools/resetDatabase
Blocking browse database operations.
VCPkgSrv count = 0
Unblocking browse database operations.
Opening code store: /home/dschulze/.cache/vscode-cpptools/cf70b81b5c97f32d555978fa920312e6/.browse.VC.db
Creating/updating compiler cache data tables (previously: 0)
Code browsing service initialized
LSP: (invoked) cpptools/didChangeVisibleTextEditors
Symbol index configuration: config=1025 new_config=1 added_files=0 removed_files=0 changed_file_options=0 changed_forced_includes=0
Unified Store: Files Initialized (completed)
Done parsing remaining files.
Unified Store: Configuration Initialized (completed)
Done parsing remaining files.
Database safe to open.

Expected behavior:

  1. Workspacefile, change line 12 to //"*": true,
  2. "Reset IntelliSense Database"
  3. Console should print out the filenames
Parsed file (initial): /mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/inc/Folder/ClassInFolder.h
Parsed file (initial): /mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/inc/NewClass.h
Parsed file (initial): /mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/inc/OtherClass.h
Parsed file (initial): /mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/src/Folder/ClassInFolder.cpp
Parsed file (initial): /mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/src/NewClass.cpp
Parsed file (initial): /mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/src/OtherClass.cpp
Configuration and Logs

-------- Diagnostics - 10.11.2026, 15:13:01
Version: 1.35.6
Current Configuration:
{
    "name": "test config",
    "cStandard": "c11",
    "cppStandard": "c++11",
    "includePath": [
        "/mnt/daten/gitTest/VsCodeIntelliSenseTest/NewProject/**"
    ],
    "browse": {
        "path": [
            "/mnt/daten/gitTest/VsCodeIntelliSenseTest"
        ],
        "limitSymbolsToIncludedHeaders": true
    },
    "compilerPathIsExplicit": false,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": false,
    "recursiveIncludesPriorityIsExplicit": false,
    "recursiveIncludesOrderIsExplicit": false,
    "intelliSenseMode": "linux-gcc-x64",
    "mergeConfigurations": false,
    "recursiveIncludes": {},
    "compilerPath": "/usr/bin/gcc"
}
Modified Settings:
{
    "C_Cpp.clang_format_sortIncludes": false,
    "C_Cpp.loggingLevel": "Debug"
}
Additional Tracked Settings:
{
    "editorTabSize": 2,
    "editorInsertSpaces": true,
    "editorAutoClosingBrackets": "languageDefined",
    "filesEncoding": "utf8",
    "filesAssociations": {},
    "filesExclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/.jj": true,
        "**/.DS_Store": true,
        "**/Thumbs.db": true,
        "*": true,
        "!NewProject/*": true,
        "!.vscode/*": true
    },
    "filesAutoSaveAfterDelay": false,
    "editorInlayHintsEnabled": true,
    "editorParameterHintsEnabled": true,
    "searchExclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/*.code-search": true
    },
    "workbenchSettingsEditor": "ui"
}
cpptools version (native): 1.35.5.0
Current database path: /home/foo/.cache/vscode-cpptools/cf70b81b5c97f32d555978fa920312e6/.browse.VC.db
No active translation units.

Other Extensions

No response

Additional context

No response

Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
1g 17h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-cpptools

Tutte le issue di microsoft/vscode-cpptools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.