Skip to content

Conversation

@SimonSiefke
Copy link
Contributor

@SimonSiefke SimonSiefke commented Nov 13, 2025

Fixes a memory leak in terminal tabs list.

The main change is changing the TabsRenderer from a Disposable to a not-Disposable. Looking at other workbench lists, it seems list renderer is always a not-Disposable, and instead uses templateDisposables and elementDisposables to dispose elements.

Before

When changing something like a task icon, the number of fillActionBar functions seems to grow each time

terminal-action-bar

After

No more memory leak is detected:

{
  "namedFunctionCount3": [],
  "isLeak": false
}

@SimonSiefke SimonSiefke marked this pull request as draft November 13, 2025 18:07
@SimonSiefke SimonSiefke marked this pull request as ready for review November 13, 2025 19:54
@meganrogge meganrogge added this to the November 2025 milestone Nov 13, 2025
Copy link
Contributor

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

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

Thank you!

@meganrogge meganrogge requested a review from Tyriar November 13, 2025 21:34
@meganrogge meganrogge merged commit 945badb into microsoft:main Nov 17, 2025
17 checks passed
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.

3 participants