mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 00:35:30 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user