Skip to content

SCM - fix the disposal of artifact commands#280920

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/growing-capybara
Dec 3, 2025
Merged

SCM - fix the disposal of artifact commands#280920
lszomoru merged 1 commit intomainfrom
lszomoru/growing-capybara

Conversation

@lszomoru
Copy link
Member

@lszomoru lszomoru commented Dec 3, 2025

Related #280596

Copilot AI review requested due to automatic review settings December 3, 2025 11:15
@lszomoru lszomoru enabled auto-merge (squash) December 3, 2025 11:15
@lszomoru lszomoru self-assigned this Dec 3, 2025
@lszomoru lszomoru added the scm General SCM compound issues label Dec 3, 2025
@lszomoru lszomoru added this to the November 2025 milestone Dec 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the disposal management of artifact commands in the SCM (Source Control Management) extension host API. The change addresses a memory leak issue (related to GitHub issue #280596) by moving the responsibility of managing artifact command disposables from the ExtHostSCM class to individual ExtHostSourceControl instances.

Key changes:

  • Moved command disposal tracking from a centralized map to instance-level DisposableMap
  • Extracted artifact provision logic into a dedicated method on ExtHostSourceControl
  • Ensured proper cleanup when source controls are disposed

@lszomoru lszomoru merged commit 5ea1859 into main Dec 3, 2025
33 of 34 checks passed
@lszomoru lszomoru deleted the lszomoru/growing-capybara branch December 3, 2025 11:34
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

scm General SCM compound issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants