Repository navigation
fix: memory leak in run and debug view - #330233
Closed
Simon Siefke (SimonSiefke) wants to merge 1 commit into
Closed
Simon Siefke (SimonSiefke) wants to merge 1 commit into
Simon Siefke (SimonSiefke) wants to merge 1 commit into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes leaked Run and Debug composite resources when its view is removed.
Changes:
- Scopes progress and instantiation resources to each composite.
- Adds regression coverage for listener disposal.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/vs/workbench/browser/parts/compositePart.ts |
Disposes composite-scoped resources on removal. |
src/vs/workbench/test/browser/parts/compositePart.test.ts |
Tests progress listener cleanup. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Dmitriy Vasyura (dmitrivMS)
approved these changes
Aug 13, 2026
Collaborator
|
Simon Siefke (@SimonSiefke) Please resolve conflicts. |
Dmitriy Vasyura (dmitrivMS)
requested changes
Aug 13, 2026
Dmitriy Vasyura (dmitrivMS)
left a comment
Collaborator
There was a problem hiding this comment.
Conflicts
Simon Siefke (SimonSiefke)
force-pushed
the
fix/memory-leak-run-and-debug-view
branch
from
August 13, 2026 10:35
ee5e279 to
b127c92
Compare
Collaborator
|
no changes... |
Contributor
Author
|
Oops, my bad. I didn't even notice it was the same changes. |
Simon Siefke (SimonSiefke)
deleted the
fix/memory-leak-run-and-debug-view
branch
August 13, 2026 12:14
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
Moving Run and Debug to the panel and resetting its location leaves event listeners behind. This keeps the old Run and Debug view in memory.
Change
Dispose the progress scope, progress indicator and child instantiation service when the composite is removed.
Before
When moving the Run and Debug view to the panel and resetting its location 37 times, the view and related callbacks grow:
After
No more matching leak is detected.
Test Video
test-video.webm