fix: memory leak when scrolling in notebook (#200447)

* fix: memory leak when scrolling in notebook

* remove unused code

* remove unused code

* remove unused code
This commit is contained in:
Simon Siefke
2023-12-13 00:13:57 +01:00
committed by GitHub
parent 298b07637a
commit 358f15fb9b
@@ -381,11 +381,11 @@ export class DropdownWithDefaultActionViewItem extends BaseActionViewItem {
};
this._dropdown = new DropdownMenuActionViewItem(submenuAction, submenuAction.actions, this._contextMenuService, dropdownOptions);
this._dropdown.actionRunner.onDidRun((e: IRunEvent) => {
this._register(this._dropdown.actionRunner.onDidRun((e: IRunEvent) => {
if (e.action instanceof MenuItemAction) {
this.update(e.action);
}
});
}));
}
private update(lastAction: MenuItemAction): void {