提交 993c987e 编写于 作者: J João Moreno

fixes #107903

上级 f76edc7e
......@@ -731,6 +731,7 @@ export function getContextMenuActions(menuService: IMenuService, contextKeyServi
return instantiationService.createInstance(MenuItemExtensionAction, action);
})));
menu.dispose();
scopedContextKeyService.dispose();
return groups;
}
......
......@@ -1236,6 +1236,7 @@ class TimelinePaneCommands extends Disposable {
createAndFillInContextMenuActions(menu, { shouldForwardArgs: true }, result, this.contextMenuService, g => /^inline/.test(g));
menu.dispose();
scoped.dispose();
return result;
}
......
......@@ -1027,9 +1027,8 @@ class TreeMenus extends Disposable implements IDisposable {
createAndFillInContextMenuActions(menu, { shouldForwardArgs: true }, result, this.contextMenuService, g => /^inline/.test(g));
menu.dispose();
// When called without a parameter, updateParent will dispose the parent change listener.
// We cannot call dispose on the contextKeyService because it will break submenus.
contextKeyService.updateParent();
contextKeyService.dispose();
return result;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册