Skip to content

language server is too greedy searching for files #14011

@daltairwalter

Description

@daltairwalter

Environment

Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

  • C/C++ Extension Version: 1.28.3

Bug Summary and Steps to Reproduce

The C++ language server is scanning too many files and the directions in: https://github.com/microsoft/vscode-cpptools/wiki/Optimizing-your-configuration are not very effective because they focus on excluding paths rather than specifying the paths that I am interested in. This is like asking me to identify my team by finding all of the other teams and excluding each of them. The other options like reducing the folders with a multi-root workspace would be very difficult because there is a significant list of include paths. The browse.path seems like it may be useful, but the documentation is vague and indicates the the includePath will be used if unspecified, so it seems like this would already be used.

Are there any ways to directly indicate what should be scanned rather than what should not be scanned?

Configuration and Logs

"C_Cpp.autoAddFileAssociations": false,
        "C_Cpp.clang_format_style": "...",
        "C_Cpp.clang_format_sortIncludes": true,
        "C_Cpp.dimInactiveRegions": false,
        "C_Cpp.workspaceParsingPriority": "medium",
        "C_Cpp.default.intelliSenseMode": "msvc-x64",
        "C_Cpp.default.cStandard": "c11",
        "C_Cpp.default.cppStandard": "c++17",
        "C_Cpp.default.defines": [...],
        "C_Cpp.default.includePath": [...]

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Feature: ConfigurationAn issue related to configuring the extension or IntelliSensemore info neededThe issue report is not actionable in its current state

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions