Skip to content

Conversation

@SimonSiefke
Copy link
Contributor

Fixes a memory leak in chatListRenderer.

Using this._register adds the disposable to the ChatListRenderer instead of the elementDisposables or templateDisposables. But list renderers (probably)? always need to use elementDisposables or templateDisposables for registering event listeners / disposables.

@vs-code-engineering
Copy link

vs-code-engineering bot commented Dec 10, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@roblourens

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatListRenderer.ts

@roblourens
Copy link
Member

Good one

@roblourens roblourens assigned justschen and unassigned alexr00 Dec 10, 2025
Copy link
Collaborator

@justschen justschen left a comment

Choose a reason for hiding this comment

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

good catch, thanks!

@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 12, 2025
@roblourens roblourens enabled auto-merge (squash) December 15, 2025 22:15
@roblourens roblourens merged commit 86e8090 into microsoft:main Dec 15, 2025
17 checks passed
przpl pushed a commit to przpl/vscode that referenced this pull request Dec 16, 2025
@SimonSiefke SimonSiefke deleted the fix/memory-leak-chat-list-renderer branch January 15, 2026 15:07
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.

5 participants