Skip to content

Commit

Permalink
Move Editor Left / Right actions incosistent when tabs are disabled (f…
Browse files Browse the repository at this point in the history
…ixes #42997)
  • Loading branch information
bpasero committed Feb 6, 2018
1 parent 5dcd2ba commit 114b671
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vs/workbench/browser/parts/editor/editorCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ function registerActiveEditorMoveCommand(): void {
}

function moveActiveEditor(args: ActiveEditorMoveArguments = {}, accessor: ServicesAccessor): void {
const showTabs = accessor.get(IEditorGroupService).getTabOptions().showTabs;
args.to = args.to || ActiveEditorMovePositioning.RIGHT;
args.by = showTabs ? args.by || ActiveEditorMovePositioningBy.TAB : ActiveEditorMovePositioningBy.GROUP;
args.by = args.by || ActiveEditorMovePositioningBy.TAB;
args.value = types.isUndefined(args.value) ? 1 : args.value;

const activeEditor = accessor.get(IWorkbenchEditorService).getActiveEditor();
Expand Down

0 comments on commit 114b671

Please sign in to comment.