Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dispose 3 leaked disposables #242519

Merged
merged 2 commits into from
Mar 3, 2025
Merged

dispose 3 leaked disposables #242519

merged 2 commits into from
Mar 3, 2025

Conversation

amunger
Copy link
Contributor

@amunger amunger commented Mar 3, 2025

reduce some console errors

@amunger amunger marked this pull request as ready for review March 3, 2025 22:51
@vs-code-engineering vs-code-engineering bot added this to the March 2025 milestone Mar 3, 2025
@amunger amunger enabled auto-merge (squash) March 3, 2025 22:58
@amunger amunger merged commit e03dd9a into main Mar 3, 2025
8 checks passed
@amunger amunger deleted the aamunger/disposables branch March 3, 2025 23:14
@@ -366,7 +367,7 @@ export class CodeCellRenderer extends AbstractCellRenderer implements IListRende
outputShowMoreContainer,
editor,
templateDisposables,
elementDisposables: new DisposableStore(),
elementDisposables: this._register(new DisposableStore()),
Copy link
Member

Choose a reason for hiding this comment

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

elementDisposables should be registered into the templateDisposables -- this has a similar leak as renderTemplate can be called an arbitrary number of times.

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