Skip to content

QuickDiff - dispose the quick diff model reference#283565

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/present-loon
Dec 15, 2025
Merged

QuickDiff - dispose the quick diff model reference#283565
lszomoru merged 1 commit intomainfrom
lszomoru/present-loon

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 15, 2025 11:31
@lszomoru lszomoru enabled auto-merge (squash) December 15, 2025 11:31
@lszomoru lszomoru self-assigned this Dec 15, 2025
@lszomoru lszomoru added this to the December / January 2026 milestone Dec 15, 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 fixes a memory leak by properly disposing the quick diff model reference returned by createQuickDiffModelReference(). The IReference<QuickDiffModel> must be disposed once it's no longer needed, as documented in the IQuickDiffModelService interface. The fix adds the reference to the toDispose array, which is properly disposed when the text editor is removed or when the MainThreadTextEditors component is disposed.

Key Changes

  • Adds disposal of quickDiffModelRef to prevent memory leaks in extension API diff information tracking

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants