Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Activation Event * causes ms-vscode.cpptools to load in every directory #1478

Closed
daniel-stoneuk opened this issue Mar 23, 2022 · 4 comments
Closed
Labels
fixed-pending-release Fix is merged and will be included in the next release.

Comments

@daniel-stoneuk
Copy link

I was encountering extremely high (100%) CPU usage from the ms-vscode.cpptools cpptools process and determined that it was due to that extension indexing every single file within my home directory. This would go on continuously, and even after VSCode was closed. I'll be making an issue over there for why the process continued after the VSCode process ended.

Since the Arduino extension is set to activate whenever VSCode starts up, and is dependent on the C++ extension, an empty VSCode window with no open project would cause this issue to occur. For this reason I have had to disable the Arduino extension.

Would it be possible to reduce the scope of the activation events to only run when relevant files are found or commands run?

@daniel-stoneuk daniel-stoneuk changed the title Activation Event * causes ms-vscode.cpptools to load in every directory Activation Event * causes ms-vscode.cpptools to load in every directory - high CPU usage in home directory Mar 23, 2022
@github-actions github-actions bot added the triage New issues that have not been reviewed. label Mar 23, 2022
@daniel-stoneuk
Copy link
Author

An update from the linked issue in vscode-cpptools: the high CPU usage was due to a misconfiguration on my machine. However, I believe this would still be a good change to make.

@BelKed
Copy link
Contributor

BelKed commented Mar 24, 2022

I agree with this change. It takes about half a second to load this extension with vscode-cpptools.
This may seem like a negligible time, but these two extensions are loading the slowest of the all installed extensions...

Screen Shot 2022-03-24 at 17 31 15

@benmcmorran
Copy link
Member

Fixed by #1481.

@benmcmorran benmcmorran added fixed-pending-release Fix is merged and will be included in the next release. and removed triage New issues that have not been reviewed. labels Mar 24, 2022
@daniel-stoneuk daniel-stoneuk changed the title Activation Event * causes ms-vscode.cpptools to load in every directory - high CPU usage in home directory Activation Event * causes ms-vscode.cpptools to load in every directory Mar 24, 2022
@github-actions
Copy link

github-actions bot commented May 3, 2022

This issue has been fixed in the latest release of this extension, which is available in the VS Code extension marketplace.

@github-actions github-actions bot closed this as completed May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-pending-release Fix is merged and will be included in the next release.
Projects
None yet
Development

No branches or pull requests

3 participants