mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
fix #42295
This commit is contained in:
parent
ab6230c32e
commit
516fe4e88f
|
@ -265,9 +265,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|||
},
|
||||
id: OPEN_TO_SIDE_COMMAND_ID, handler: (accessor, resource: URI) => {
|
||||
const editorService = accessor.get(IWorkbenchEditorService);
|
||||
const editorGroupService = accessor.get(IEditorGroupService);
|
||||
const listService = accessor.get(IListService);
|
||||
const tree = listService.lastFocusedList;
|
||||
const resources = getMultiSelectedResources(resource, listService, editorService);
|
||||
const stacks = editorGroupService.getStacksModel();
|
||||
const activeGroup = stacks.activeGroup;
|
||||
|
||||
// Remove highlight
|
||||
if (tree instanceof Tree) {
|
||||
|
@ -283,7 +286,11 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|||
options: { preserveFocus: false }
|
||||
}
|
||||
};
|
||||
}), true);
|
||||
}), true).then(() => {
|
||||
if (activeGroup) {
|
||||
editorGroupService.focusGroup(stacks.positionOfGroup(activeGroup) + 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return TPromise.as(true);
|
||||
|
|
Loading…
Reference in a new issue