Repository navigation
fix: memory leak in accessible view toolbar - #333183
Merged
Connor Peet (connor4312) merged 3 commits intoAug 31, 2026
Merged
Connor Peet (connor4312) merged 3 commits into
Connor Peet (connor4312) merged 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the accessible-view toolbar menu leak by managing the active menu’s lifecycle explicitly.
Changes:
- Replaces and disposes toolbar menus via
MutableDisposable. - Clears the active menu when the context view hides.
- Adds lifecycle coverage, though the hide-path regression remains untested.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
accessibleView.ts |
Manages and clears the active toolbar menu. |
accessibleView.test.ts |
Tests menu replacement and view disposal. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Megan Rogge (meganrogge)
approved these changes
Aug 31, 2026
Megan Rogge (meganrogge)
left a comment
Collaborator
There was a problem hiding this comment.
Thank you!
Connor Peet (connor4312)
approved these changes
Aug 31, 2026
roblourens
approved these changes
Aug 31, 2026
Collaborator
|
Checks failing |
Connor Peet (connor4312)
enabled auto-merge
August 31, 2026 19:27
Megan Rogge (meganrogge)
approved these changes
Aug 31, 2026
Simon Siefke (SimonSiefke)
deleted the
fix/memory-leak-accessibleView-toolbar
branch
September 1, 2026 14:33
Abdon Morales (abdonmorales)
pushed a commit
to abdonmorales/vscode-utcs
that referenced
this pull request
Sep 23, 2026
…accessibleView-toolbar fix: memory leak in accessible view toolbar (cherry picked from commit fb6289d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
The accessible view registered a new toolbar menu in its lifetime store on every render, so closing Accessibility Help left the menu and its listeners reachable.
Change
Keep the toolbar menu in a replaceable disposable and clear it when the context view hides.
Before
When opening and closing Accessibility Help 37 times, six menu callbacks and menu objects grow by 37:
After
No more accessible view toolbar menu leak is detected.
Test Video
test-video.webm