-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single file IntelliSense consumes massive CPU indexing all system includes #1109
Comments
What are your c_cpp_properties.json settings? Depending on your browse settings, this might be "by design". You can enable logging to see if there's unexpected work occurring: https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/Enabling%20logging.md . |
An hour and a half of parsing seems too much, even for large projects. Can you give us more information about the project? How many files? Is it open source so we can try to debug the problem locally? As Sean mentions, the "browse.path" setting may have an impact because we will recursively scan folders, so try not to include the same subfolders multiple times until we add support to prune rescans. |
ahh, interesting hint. When I experienced this, I had no folder selected (just opened a single file for quick editing). I just opened a random folder and the problem disappeared. It seems to re-appear when the folder is closed with Here are some logs generated with the env. variables from the link of @sean-mcmanus posted above at loglevel 5.
Looking at the logs it seems like the recursion runs amok when there's no folder selected? 🤔 |
Thank you for the logs. That was super helpful. It looks like VS Code is not sending us a root path when you open a single file and we end up treating all of the system includes as part of your "workspace" which means that we won't skip parsing them.
|
Glad to help, hope you get this fixed soon. The workaround until then is just to open a folder 😉 |
We released 0.14.0 with a fix for this. Please let us know if you continue to have issues. |
Hi guys,
I experience a high CPU load, apparently caused by the C++ extension. One core is always used 100% even when no files are being edited. The problem doesn't occur with
code --disable-extensions
. My issue looks similar to this one: microsoft/vscode#33176Here's my configuration:
Steps to Reproduce:
Reproduces without extensions: No
The text was updated successfully, but these errors were encountered: