fix #10312
This commit is contained in:
parent
98e0693013
commit
2659dd58db
1 changed files with 6 additions and 2 deletions
|
@ -120,12 +120,16 @@ function moveActiveTab(args: ActiveEditorMoveArguments, activeEditor: IEditor, a
|
||||||
function moveActiveEditorToGroup(args: ActiveEditorMoveArguments, activeEditor: IEditor, accessor: ServicesAccessor) {
|
function moveActiveEditorToGroup(args: ActiveEditorMoveArguments, activeEditor: IEditor, accessor: ServicesAccessor) {
|
||||||
let newPosition = activeEditor.position;
|
let newPosition = activeEditor.position;
|
||||||
switch (args.to) {
|
switch (args.to) {
|
||||||
case ActiveEditorMovePositioning.FIRST:
|
|
||||||
case ActiveEditorMovePositioning.LEFT:
|
case ActiveEditorMovePositioning.LEFT:
|
||||||
|
newPosition = newPosition - 1;
|
||||||
|
break;
|
||||||
|
case ActiveEditorMovePositioning.RIGHT:
|
||||||
|
newPosition = newPosition + 1;
|
||||||
|
break;
|
||||||
|
case ActiveEditorMovePositioning.FIRST:
|
||||||
newPosition = Position.LEFT;
|
newPosition = Position.LEFT;
|
||||||
break;
|
break;
|
||||||
case ActiveEditorMovePositioning.LAST:
|
case ActiveEditorMovePositioning.LAST:
|
||||||
case ActiveEditorMovePositioning.RIGHT:
|
|
||||||
newPosition = Position.RIGHT;
|
newPosition = Position.RIGHT;
|
||||||
break;
|
break;
|
||||||
case ActiveEditorMovePositioning.CENTER:
|
case ActiveEditorMovePositioning.CENTER:
|
||||||
|
|
Loading…
Reference in a new issue