提交 e839e456 编写于 作者: J Johannes Rieken

dispose command-palette after usage, #62829

上级 a4d87f73
......@@ -425,6 +425,7 @@ export class CommandsHandler extends QuickOpenHandler {
const menu = this.editorService.invokeWithinEditorContext(accessor => this.menuService.createMenu(MenuId.CommandPalette, accessor.get(IContextKeyService)));
const menuActions = menu.getActions().reduce((r, [, actions]) => [...r, ...actions], <MenuItemAction[]>[]).filter(action => action instanceof MenuItemAction) as MenuItemAction[];
const commandEntries = this.menuItemActionsToEntries(menuActions, searchValue);
menu.dispose();
// Concat
let entries = [...editorEntries, ...commandEntries];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册