提交 d2236dc6 编写于 作者: I isidor

open editors: disable close other editors action if no more editors in group

上级 6d7acce5
......@@ -458,7 +458,9 @@ export class ActionProvider implements IActionProvider {
closeActions.push(this.instantiationService.createInstance(CloseEditorAction, CloseEditorAction.ID, CloseEditorAction.LABEL));
closeActions.push(new Separator());
closeActions.push(this.instantiationService.createInstance(CloseOtherEditorsInGroupAction, CloseOtherEditorsInGroupAction.ID, CloseOtherEditorsInGroupAction.LABEL));
const closeOtherEditorsInGroupAction = this.instantiationService.createInstance(CloseOtherEditorsInGroupAction, CloseOtherEditorsInGroupAction.ID, CloseOtherEditorsInGroupAction.LABEL);
closeOtherEditorsInGroupAction.enabled = openEditor.editorGroup.count > 1;
closeActions.push(closeOtherEditorsInGroupAction);
closeActions.push(this.instantiationService.createInstance(CloseAllEditorsInGroupAction, CloseAllEditorsInGroupAction.ID, CloseAllEditorsInGroupAction.LABEL));
closeActions.push(new Separator());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册