Directory iteration no longer respects files.exclude
Maintainer antworten meist innerhalb von 1 Tag
@Colengms arbeitet bereits daran.
Seit 09.10.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Environment
- OS and Version: Linux x64, Debian 13
- VS Code Version: 1.137.0
- C/C++ Extension Version: 1.34.4 (applies to any v1.33+, including prerelease v1.35)
- If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
Directory iteration seems to no longer respect files.exclude or C_Cpp.files.exclude as in #3123. This appears to be a regression introduced in v1.33, as it doesn't occur on v1.32 and earlier.
Steps to reproduce:
- Open a C++ project with a path that's covered by a
files.excludeand/orC_Cpp.files.excludepattern - Observe that
cpptoolsattempts to iterate and list these directories (this is obvious for us because it hits a large directory on a networked filesystem that triggers heavy CPU load, but can also confirm withstrace).
Expected behavior: Excluded paths are not iterated
Configuration and Logs
Paths are sanitized/not real:
**c_cpp_properties.json**
{
"configurations": [
{
"name": "Linux",
"includePath": ["${workspaceFolder}/**"],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
**settings.json**
{
"files.exclude": { "**/excluded": true },
"C_Cpp.files.exclude": { "**/excluded": true },
"C_Cpp.loggingLevel": "Debug"
}
Output logs
LSP: (received) cpptools/preinitialize (id: 1)
LSP: (invoked) cpptools/preinitialize (id: 1)
LSP: Sending response (id: 1)
LSP: (received) cpptools/initialize (id: 2)
LSP: (invoked) cpptools/initialize (id: 2)
cpptools version (TypeScript): 1.33.8
cpptools version (native): 1.33.7.0
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
LSP: Sending response (id: 2)
LSP: (received) cpptools/queryCompilerDefaults (id: 3)
LSP: (invoked) cpptools/queryCompilerDefaults (id: 3)
Querying compiler for default C++ language standard using command line: /path/to/user-default/gcc -x c++ -E -dM /dev/null
Detected language standard version: gnu++17
Querying compiler's default target using command line: "/path/to/user-default/gcc" -dumpmachine
Compiler returned default target value: x86_64-linux-gnu
Compiler info database not connected - skipping load.
Compiler query command line: /path/to/user-default/gcc -std=c17 -m64 -Wp,-v -E -dM -x c /dev/null
Attempting to get defaults from C compiler in "compilerPath" property: '/path/to/user-default/gcc'
Compiler info database not connected - skipping load.
Compiler query command line: /path/to/user-default/gcc -std=gnu++17 -m64 -Wp,-v -E -dM -x c++ /dev/null
Attempting to get defaults from C++ compiler in "compilerPath" property: '/path/to/user-default/gcc'
LSP: Sending response (id: 3)
Processed c_cpp_properties.json in 0.00294839s
LSP: (received) cpptools/didChangeCppProperties
LSP: (invoked) cpptools/didChangeCppProperties
Compiler info database not connected - skipping load.
Querying compiler for default C++ language standard using command line: /usr/bin/gcc -x c++ -E -dM /dev/null
Compiler info database not connected - skipping load.
Detected language standard version: gnu++17
Querying compiler's default target using command line: "/usr/bin/gcc" -dumpmachine
Compiler returned default target value: x86_64-linux-gnu
Compiler query command line: /usr/bin/gcc -std=c17 -m64 -Wp,-v -E -dM -x c /dev/null
Compiler query command line: /usr/bin/gcc -std=c++17 -m64 -Wp,-v -E -dM -x c++ /dev/null
Attempting to get defaults from C compiler in "compilerPath" property: '/usr/bin/gcc'
Attempting to get defaults from C++ compiler in "compilerPath" property: '/usr/bin/gcc'
Folder: /usr/include will be indexed
Folder: /usr/include/c++/14 will be indexed
Folder: /usr/include/c++/14/backward will be indexed
Folder: /usr/include/x86_64-linux-gnu will be indexed
Folder: /usr/include/x86_64-linux-gnu/c++/14 will be indexed
Folder: /usr/lib/gcc/x86_64-linux-gnu/14/include will be indexed
Folder: /usr/local/include will be indexed
Folder: /home/user/repro will be indexed
Opening code store: /home/user/.cache/vscode-cpptools/-1252e761/.browse.VC.db
Code browsing service initialized
Unified Store: Files Initialized (completed)
Done parsing remaining files.
Unified Store: Configuration Initialized (completed)
Done parsing remaining files.
selected strace output
open("/home/user/repro", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 17</home/user/repro>
open("/home/user/repro/.vscode", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 17</home/user/repro/.vscode>
open("/home/user/repro/excluded", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 18</home/user/repro/excluded>
open("/home/user/repro/src", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 17</home/user/repro/src>
open("/home/user/repro/excluded/a", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 19</home/user/repro/excluded/a>
open("/home/user/repro/excluded/a/b", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 19</home/user/repro/excluded/a/b>
open("/home/user/repro/excluded/a/b/c", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 19</home/user/repro/excluded/a/b/c>
open("/home/user/repro/src/", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 21</home/user/repro/src>
open("/home/user/repro/", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 21</home/user/repro>
### Other Extensions
_No response_
### Additional context
_No response_
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 1 T. 21 Std.
- Gemergte PRs (30 T.)
- 36
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/vscode-cpptools
-
Allow case-insensitive suppression of parameter inlay hintsEvtl. vergeben @Colengms hat das vor 1 Tag übernommen. OffenFeature: Inlay Hint Language Service
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/vscode-cpptools#14829 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Including `stdatomic.h` causes `size_t` to report the wrong type in IntellisenseEvtl. vergeben @Colengms hat das vor 1 Tag übernommen. Offenbug Language Service
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
microsoft/vscode-cpptools#14825 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
IntelliSense reports an error on a valid deduction guide (error: the return type must directly designate a specialization of the associated class template)Evtl. vergeben @Colengms hat das vor 5 Tagen übernommen. Offenbug Language Service
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
microsoft/vscode-cpptools#14824 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Language Service more info needed
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
microsoft/vscode-cpptools#14819 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug Language Service verified
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
microsoft/vscode-cpptools#14817 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in microsoft/vscode-cpptools
Ähnliche Issues
-
useFragment does not require `variables` when the fragment's variables type has required fieldsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
apollographql/apollo-client#13493 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Custom hosts written as trailing-dot FQDNs (`host.local.`) aren't detected as local backendsEvtl. vergeben @roboomp hat das heute übernommen. Offenbug prio:p2 providers triaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
can1357/oh-my-pi#15798 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
code-yeongyu/oh-my-openagent#10172 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
PDFCraftTool/pdfcraft#189 ·
-
Add the Yahoo chart API duplicate last-day row (yfinance#573) to incidents.md (about 1 hour)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offendata docs good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
pacocartones/market-data-sanity-checker#160 ·
Maintainer antworten meist innerhalb von 1 Tag