Skip to content

fix: memory leak in chat welcome#271121

Merged
bpasero merged 1 commit intomicrosoft:mainfrom
SimonSiefke:fix/memory-leak-chat-welcome
Oct 13, 2025
Merged

fix: memory leak in chat welcome#271121
bpasero merged 1 commit intomicrosoft:mainfrom
SimonSiefke:fix/memory-leak-chat-welcome

Conversation

@SimonSiefke
Copy link
Contributor

Changes the context menu listener in chatWidget.ts to a MutableDisposable so that there is at most one context menu listener.

Without the change it seems that each time opening the chat welcome view, a new context menu event listener is added:

context-menu-listener
@vs-code-engineering
Copy link

📬 CODENOTIFY

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

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatWidget.ts
@bpasero bpasero assigned bhavyaus and unassigned connor4312 Oct 13, 2025
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 13, 2025
@bpasero bpasero enabled auto-merge (squash) October 13, 2025 15:30
@bpasero bpasero merged commit bb0294f into microsoft:main Oct 13, 2025
17 checks passed
pwang347 pushed a commit that referenced this pull request Oct 14, 2025
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 27, 2025
@SimonSiefke SimonSiefke deleted the fix/memory-leak-chat-welcome branch January 15, 2026 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants