Skip to content

workbench: fix ObjectSettingCheckboxWidget memory leaky - #323670

Merged
Raymond Zhao (rzhao271) merged 3 commits into
microsoft:mainfrom
theanarkh:fix_ObjectSettingCheckboxWidget_memory_leaky
Jul 10, 2026
Merged

Raymond Zhao (rzhao271) merged 3 commits into
microsoft:mainfrom
theanarkh:fix_ObjectSettingCheckboxWidget_memory_leaky

Conversation

@theanarkh

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 30, 2026 06:20
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Raymond Zhao (@rzhao271)

Matched files:

  • src/vs/workbench/contrib/preferences/browser/settingsWidgets.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes a memory leak in the Settings UI’s ObjectSettingCheckboxWidget by ensuring per-row DOM event listeners are disposed when the list re-renders (rather than only when the entire widget is disposed).

Changes:

  • Register MOUSE_DOWN listeners with listDisposables instead of _register so they are cleared on renderList().
  • Align ObjectSettingCheckboxWidget with the existing AbstractListSettingWidget pattern where listDisposables.clear() runs on every list rebuild.
@rzhao271
Raymond Zhao (rzhao271) enabled auto-merge (squash) July 10, 2026 22:40
@rzhao271
Raymond Zhao (rzhao271) merged commit 56622fd into microsoft:main Jul 10, 2026
29 checks passed
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

7 participants