Repository navigation
fix: memory leak in source control view - #330241
Merged
Dmitriy Vasyura (dmitrivMS) merged 3 commits intoAug 13, 2026
Merged
Dmitriy Vasyura (dmitrivMS) merged 3 commits into
Dmitriy Vasyura (dmitrivMS) merged 3 commits into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ladislau Szomoru (@lszomoru)Matched files:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes retained Source Control views when relocating their container.
Changes:
- Scopes composite progress resources to each composite.
- Disposes the SCM resource renderer.
- Adds composite-removal disposal coverage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
compositePart.ts |
Manages per-composite disposables. |
scmViewPane.ts |
Disposes the resource renderer. |
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.
Collaborator
|
Simon Siefke (@SimonSiefke) Please resolve conflcits. |
Dmitriy Vasyura (dmitrivMS)
approved these changes
Aug 13, 2026
Dmitriy Vasyura (dmitrivMS)
requested changes
Aug 13, 2026
Dmitriy Vasyura (dmitrivMS)
left a comment
Collaborator
There was a problem hiding this comment.
Conflicts
auto-merge was automatically disabled
August 13, 2026 10:35
Head branch was pushed to by a user without write access
Simon Siefke (SimonSiefke)
force-pushed
the
fix/memory-leak-source-control-view
branch
from
August 13, 2026 10:35
3f6d085 to
6b2f289
Compare
Dmitriy Vasyura (dmitrivMS)
approved these changes
Aug 13, 2026
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
August 13, 2026 11:10
Henning Dieterichs (hediet)
approved these changes
Aug 13, 2026
Dirk Bäumer (dbaeumer)
approved these changes
Aug 13, 2026
Simon Siefke (SimonSiefke)
deleted the
fix/memory-leak-source-control-view
branch
August 13, 2026 20: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 Source Control between the Activity Bar and panel leaves the old view in memory.
Change
Dispose the composite progress objects when the composite is removed. Also dispose the Source Control resource renderer with its view.
Before
Moving Source Control to the panel and resetting its location 37 times retains
SCMViewPaneand related objects:After
No leak is detected after 37 runs.
Test Video
test-video.webm