提交 516fe4e8 编写于 作者: B Benjamin Pasero

fix #42295

上级 ab6230c3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册