mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-23 00:29:35 +01:00
fix #52615
This commit is contained in:
@@ -138,6 +138,7 @@ function moveActiveTab(args: ActiveEditorMoveArguments, control: IEditor, access
|
||||
|
||||
function moveActiveEditorToGroup(args: ActiveEditorMoveArguments, control: IEditor, accessor: ServicesAccessor): void {
|
||||
const editorGroupService = accessor.get(IEditorGroupsService);
|
||||
const configurationService = accessor.get(IConfigurationService);
|
||||
|
||||
const sourceGroup = control.group;
|
||||
let targetGroup: IEditorGroup;
|
||||
@@ -178,6 +179,9 @@ function moveActiveEditorToGroup(args: ActiveEditorMoveArguments, control: IEdit
|
||||
break;
|
||||
case 'next':
|
||||
targetGroup = editorGroupService.findGroup({ location: GroupLocation.NEXT }, sourceGroup);
|
||||
if (!targetGroup) {
|
||||
targetGroup = editorGroupService.addGroup(sourceGroup, preferredSideBySideGroupDirection(configurationService));
|
||||
}
|
||||
break;
|
||||
case 'center':
|
||||
targetGroup = editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE)[(editorGroupService.count / 2) - 1];
|
||||
|
||||
Reference in New Issue
Block a user