提交 85f95c93 编写于 作者: B Benjamin Pasero

less confusing editor picker

上级 34d63c10
......@@ -1024,7 +1024,7 @@ export class ShowEditorsInGroupAction extends Action {
switch (stacks.positionOfGroup(context.group)) {
case Position.TWO:
return this.quickOpenService.show((groupCount === 2) ? NAVIGATE_IN_GROUP_THREE_PREFIX : NAVIGATE_IN_GROUP_TWO_PREFIX);
return this.quickOpenService.show(NAVIGATE_IN_GROUP_TWO_PREFIX);
case Position.THREE:
return this.quickOpenService.show(NAVIGATE_IN_GROUP_THREE_PREFIX);
}
......
......@@ -184,7 +184,7 @@ export abstract class EditorGroupPicker extends BaseEditorPicker {
return nls.localize('noResultsFoundInGroup', "No matching opened editor found in group");
}
return nls.localize('noOpenedEditors', "List of opened editors is currently empty");
return nls.localize('noOpenedEditors', "List of opened editors is currently empty in group");
}
public getAutoFocus(searchValue: string, quickNavigateConfiguration: IQuickNavigateConfiguration): IAutoFocus {
......@@ -224,18 +224,14 @@ export class GroupOnePicker extends EditorGroupPicker {
export class GroupTwoPicker extends EditorGroupPicker {
protected getPosition(): Position {
const stacks = this.editorGroupService.getStacksModel();
return stacks.groups.length > 2 ? Position.TWO : -1; // with 2 groups open, the second one is not available
return Position.TWO;
}
}
export class GroupThreePicker extends EditorGroupPicker {
protected getPosition(): Position {
const stacks = this.editorGroupService.getStacksModel();
return stacks.groups.length > 2 ? Position.THREE : Position.TWO;
return Position.THREE;
}
}
......@@ -259,7 +255,7 @@ export class AllEditorsPicker extends BaseEditorPicker {
return nls.localize('noResultsFound', "No matching opened editor found");
}
return nls.localize('noOpenedEditors', "List of opened editors is currently empty");
return nls.localize('noOpenedEditorsAllGroups', "List of opened editors is currently empty");
}
public getAutoFocus(searchValue: string): IAutoFocus {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册