Skip to content

Fix leak warning around events#295099

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/enormous-kingfisher
Feb 13, 2026
Merged

Fix leak warning around events#295099
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/enormous-kingfisher

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Feb 13, 2026

Seeing a bunch of leak warnings around the power service's events

Copilot AI review requested due to automatic review settings February 13, 2026 07:39
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 13, 2026
@mjbvz mjbvz enabled auto-merge February 13, 2026 07:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes memory leak warnings in the MainThreadPower class by properly utilizing the Disposable base class pattern instead of maintaining a separate DisposableStore instance.

Changes:

  • Removed unnecessary DisposableStore import and custom disposables field
  • Updated all event listener registrations to use _register() method directly from the Disposable base class

@mjbvz mjbvz merged commit 27e0fca into microsoft:main Feb 13, 2026
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants