Skip to content

Commit c866ab6

Browse files
author
Benjamin Pasero
committed
fix issue with ctrl+tab
1 parent 85f95c9 commit c866ab6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/vs/workbench/browser/parts/editor/editorActions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,12 +1063,11 @@ export class BaseQuickOpenEditorInGroupAction extends Action {
10631063
const stacks = this.editorGroupService.getStacksModel();
10641064
if (stacks.activeGroup) {
10651065
const activePosition = stacks.positionOfGroup(stacks.activeGroup);
1066-
const count = stacks.groups.length;
10671066
let prefix = NAVIGATE_IN_GROUP_ONE_PREFIX;
10681067

1069-
if (activePosition === Position.TWO && count === 3) {
1068+
if (activePosition === Position.TWO) {
10701069
prefix = NAVIGATE_IN_GROUP_TWO_PREFIX;
1071-
} else if (activePosition === Position.THREE || (activePosition === Position.TWO && count === 2)) {
1070+
} else if (activePosition === Position.THREE) {
10721071
prefix = NAVIGATE_IN_GROUP_THREE_PREFIX;
10731072
}
10741073

0 commit comments

Comments
 (0)