Repository navigation
fix: memory leak in debug visualization session items - #336031
Merged
Connor Peet (connor4312) merged 2 commits intoSep 21, 2026
Merged
Connor Peet (connor4312) merged 2 commits into
Connor Peet (connor4312) merged 2 commits into
Conversation
Connor Peet (connor4312)
enabled auto-merge
September 21, 2026 15:35
Sandeep Somavarapu (sandy081)
approved these changes
Sep 21, 2026
TylerLeonhardt
approved these changes
Sep 21, 2026
Abdon Morales (abdonmorales)
pushed a commit
to abdonmorales/vscode-utcs
that referenced
this pull request
Sep 23, 2026
…debugVisualization-sessionItems fix: memory leak in debug visualization session items (cherry picked from commit 6590df2)
Simon Siefke (SimonSiefke)
deleted the
fix/memory-leak-debugVisualization-sessionItems
branch
September 29, 2026 11:15
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
Debug visualization tree items are saved in extension-host lookup maps. Ending a debug session does not remove its items, and pending provider requests can save more items after that session has stopped.
Change
Track each item's debug sessions, remove it when its last session stops, and discard late results for stopped sessions. Preserve items still used by another live session.
Before
When starting and stopping a debug session with visualization items 37 times, 37 old tree items remain in the extension host:
After
No more tree items from stopped debug sessions accumulate in the same 37-cycle test.
Test Video
debug-tree-desktop-video.webm