Skip to content

Commit 358f15f

Browse files
authored
fix: memory leak when scrolling in notebook (#200447)
* fix: memory leak when scrolling in notebook * remove unused code * remove unused code * remove unused code
1 parent 298b076 commit 358f15f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/actions/browser/menuEntryActionViewItem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ export class DropdownWithDefaultActionViewItem extends BaseActionViewItem {
381381
};
382382

383383
this._dropdown = new DropdownMenuActionViewItem(submenuAction, submenuAction.actions, this._contextMenuService, dropdownOptions);
384-
this._dropdown.actionRunner.onDidRun((e: IRunEvent) => {
384+
this._register(this._dropdown.actionRunner.onDidRun((e: IRunEvent) => {
385385
if (e.action instanceof MenuItemAction) {
386386
this.update(e.action);
387387
}
388-
});
388+
}));
389389
}
390390

391391
private update(lastAction: MenuItemAction): void {

0 commit comments

Comments
 (0)