提交 8d5ab9ca 编写于 作者: B Benjamin Pasero

add flag to showTabsOverflowAction

上级 2f850892
......@@ -53,6 +53,8 @@ export interface ITitleAreaControl {
dispose(): void;
}
const showTabsOverflowAction = false; // TODO@Ben temporary
export abstract class TitleControl implements ITitleAreaControl {
private static draggedEditor: IEditorIdentifier;
......@@ -226,6 +228,8 @@ export abstract class TitleControl implements ITitleAreaControl {
this.pinEditorAction = this.instantiationService.createInstance(KeepEditorAction, KeepEditorAction.ID, nls.localize('keepOpen', "Keep Open"));
this.showEditorsInGroupAction = this.instantiationService.createInstance(ShowEditorsInGroupAction, ShowEditorsInGroupAction.ID, nls.localize('showOpenedEditors', "Show Opened Editors"));
this.splitEditorAction = this.instantiationService.createInstance(SplitEditorAction, SplitEditorAction.ID, SplitEditorAction.LABEL);
this.showEditorsInGroupAction.class = 'show-group-editors-action';
}
protected createEditorActionsToolBar(container: HTMLElement): void {
......@@ -367,9 +371,15 @@ export abstract class TitleControl implements ITitleAreaControl {
secondaryEditorActions = prepareActions(editorActions.secondary);
}
if (this.showTabs && showTabsOverflowAction) {
primaryEditorActions.push(this.showEditorsInGroupAction);
}
if (this.showTabs) {
secondaryEditorActions.push(new Separator());
secondaryEditorActions.push(this.showEditorsInGroupAction);
if (!showTabsOverflowAction) {
secondaryEditorActions.push(new Separator());
secondaryEditorActions.push(this.showEditorsInGroupAction);
}
secondaryEditorActions.push(new Separator());
secondaryEditorActions.push(this.closeEditorsInGroupAction);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册