This commit is contained in:
Sandeep Somavarapu 2016-08-15 12:08:43 +02:00
parent 98e0693013
commit 2659dd58db

View file

@ -120,12 +120,16 @@ function moveActiveTab(args: ActiveEditorMoveArguments, activeEditor: IEditor, a
function moveActiveEditorToGroup(args: ActiveEditorMoveArguments, activeEditor: IEditor, accessor: ServicesAccessor) {
let newPosition = activeEditor.position;
switch (args.to) {
case ActiveEditorMovePositioning.FIRST:
case ActiveEditorMovePositioning.LEFT:
newPosition = newPosition - 1;
break;
case ActiveEditorMovePositioning.RIGHT:
newPosition = newPosition + 1;
break;
case ActiveEditorMovePositioning.FIRST:
newPosition = Position.LEFT;
break;
case ActiveEditorMovePositioning.LAST:
case ActiveEditorMovePositioning.RIGHT:
newPosition = Position.RIGHT;
break;
case ActiveEditorMovePositioning.CENTER: