Skip to content

Conversation

@SimonSiefke
Copy link
Contributor

Fixes a promise memory leak in terminal process manager.

Details

Sets the promise to undefined on dispose to ensure the promise is garbage collected.

Before

When creating and removing a terminal 37 times, the number of promises seems to grow by 1 each time:

process-manager

After

Running the same test from above also 37 times, no more promise memory in terminalProcessManager is detected.

meganrogge
meganrogge previously approved these changes Jan 7, 2026
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 January 7, 2026 16:45
@meganrogge meganrogge added this to the December 2025 milestone Jan 7, 2026
@Tyriar Tyriar modified the milestones: December 2025, January 2026 Jan 7, 2026
@Tyriar
Copy link
Member

Tyriar commented Jan 7, 2026

Let's merge for Jan just in case, the ! means this could lead to a NPE

@Tyriar Tyriar enabled auto-merge January 8, 2026 10:27
@Tyriar Tyriar merged commit 69f3384 into microsoft:main Jan 8, 2026
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.

4 participants