未验证 提交 2c346822 编写于 作者: S SteVen Batten 提交者: GitHub

remove context listener in menubarControl (#60169)

上级 46b79144
......@@ -47,6 +47,11 @@ export class Menu implements IMenu {
if (isIMenuItem(item) && item.command.precondition) {
Menu._fillInKbExprKeys(item.command.precondition, keysFilter);
}
// keep toggled keys for event if applicable
if (isIMenuItem(item) && item.command.toggled) {
Menu._fillInKbExprKeys(item.command.toggled, keysFilter);
}
}
// subscribe to context changes
......
......@@ -439,9 +439,6 @@ export class MenubarControl extends Disposable {
// Listen to update service
this.updateService.onStateChange(() => this.setupMenubar());
// Listen for context changes
this._register(this.contextKeyService.onDidChangeContext(() => this.setupMenubar()));
// Listen for changes in recently opened menu
this._register(this.windowsService.onRecentlyOpenedChange(() => { this.onRecentlyOpenedChange(); }));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册