microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.38k stars 28.62k forks source link

Option to disable extensions when on battery power & re-enable when plugged in #197475

Closed abhishek-nigam closed 9 months ago

abhishek-nigam commented 10 months ago

I have a ton of extensions installed in VS Code that I find very useful. e.g. I have Codeium AI extension running & trying to generate code completions as I code, Sonarlint that runs linting & suggests fixes But, with them comes their CPU memory footprint. I am more concerned about the CPU footprint. Hence, I would like to suggest a feature through which we can create 'profiles' in VS code that specify what extensions are enabled in VS code when plugged in/and when on battery power.

Thanks

Ansh101112 commented 10 months ago

Hello there, working on it. Will submit my PR very soon.

sandy081 commented 10 months ago

@deepak1556 Is there any API to know about this?

VSCodeTriageBot commented 10 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

deepak1556 commented 10 months ago

You can use the battery status API https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API

VSCodeTriageBot commented 9 months ago

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!