Skip to content

Warn users about too many files processed in the workspace#13889

Merged
bobbrow merged 4 commits intomainfrom
bobbrow/excessiveFilesWarning
Sep 2, 2025
Merged

Warn users about too many files processed in the workspace#13889
bobbrow merged 4 commits intomainfrom
bobbrow/excessiveFilesWarning

Conversation

@bobbrow
Copy link
Member

@bobbrow bobbrow commented Aug 29, 2025

Fixes: #10828

For consideration. Telemetry suggests that less than 3% of workspaces have more than 100,000 source files (with 250,000 total files). That seems like a reasonable threshold, but we could raise it if we think that's too many customers to notify.

The notification can be disabled for the workspace. The "learn more" button links to a page I wrote in the Wiki about improving the configuration (which should also be reviewed). https://github.com/microsoft/vscode-cpptools/wiki/Optimizing-your-configuration

@bobbrow bobbrow requested a review from a team as a code owner August 29, 2025 22:15
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools Aug 29, 2025
@bobbrow bobbrow added this to the On Deck milestone Aug 29, 2025
sean-mcmanus
sean-mcmanus previously approved these changes Aug 29, 2025
@sean-mcmanus sean-mcmanus modified the milestones: On Deck, 1.27.3 Aug 29, 2025
@bobbrow bobbrow merged commit 968332d into main Sep 2, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Pull Request to Done in cpptools Sep 2, 2025
@bobbrow bobbrow deleted the bobbrow/excessiveFilesWarning branch September 2, 2025 21:36
@poleguy
Copy link

poleguy commented Mar 10, 2026

Good day, kind creators of useful free tools!

This pop-up keeps showing up and repeatedly interrupts github copilot chat. It has a button for more help, but I couldn't see the link, and couldn't click it (because I'm running in a weird x2go session where firefox click handler is broken). By looking on github it seems it links to the wiki.

The wiki lists three knobs that I can turn: they are all exclude settings that I must manually set.

The other obvious option is to remove this plugin entirely... although that has a downside. :-)

I don't see anything useful in debugging how to fix the issue in the wiki. How do I find the list of 250,000+ files so I can know what's going wrong?

It would be nice if it could propose a specific solution for me. It has the list of files, and access to a powerful computer to run an algorithm to determine a good solution, and I do not!

(I'm just dreaming here, mostly, of course.)! I did want to point out that it seems this pop-up is interacting poorly with github copilot chat.... it seemed to pop up at the same time that copilot just silently failed... twice in a row now.

The only practical suggestion would be helping me understand how to see the list of files (or possibly worst offender directories), not just the count.

I'm not deeply invested in using this plugin. It's only installed because vs code suggested it, because it saw I had a handful of c/h files in my project.

The author of this message is either human or an advanced AI bot from the distant future that is equivalent to a human. :-)

Have a nice Tuesday.

@sean-mcmanus
Copy link
Contributor

@poleguy If you're using a very large workspace with only a few .c/h files and don't intend do use the C/C++ extension features, then disabling the C/C++ extension for the workspace might actually be a good idea. Otherwise, you can set C_Cpp.loggingLevel to "Debug" to get more info on what files are being parsed and it shows what directories are being used in the browse.path. You can set the browse.path to [] or some smaller subset or set C_Cpp.files.exclude.

The wiki docs with more info are at https://github.com/microsoft/vscode-cpptools/wiki/Optimizing-your-configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Show a warning when an excessive number of C/C++ files are discovered in a workspace

4 participants