Skip to content

Fix leaking codeblock textmodel refs#295687

Open
roblourens wants to merge 2 commits intomainfrom
roblou/casual-barracuda
Open

Fix leaking codeblock textmodel refs#295687
roblourens wants to merge 2 commits intomainfrom
roblou/casual-barracuda

Conversation

@roblourens
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 17, 2026 02:52
@roblourens roblourens enabled auto-merge February 17, 2026 02:52
@roblourens roblourens self-assigned this Feb 17, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 17, 2026
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 attempts to fix a memory leak caused by unreleased text model references in chat codeblock rendering. The change modifies chatMarkdownContentPart.ts to register model references for disposal using the thenIfNotDisposed helper function.

Changes:

  • Added thenIfNotDisposed import from lifecycle utilities
  • Modified model reference handling to register it for disposal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant