Re-open with does not focus inactive editor (fix #134131)

上级 051a07a0
......@@ -925,6 +925,8 @@ function registerCloseEditorCommands() {
if (!isEditorInputWithOptionsAndGroup(resolvedEditor)) {
return;
}
// Replace editor with resolved one
await resolvedEditor.group.replaceEditors([
{
editor: editor,
......@@ -933,6 +935,9 @@ function registerCloseEditorCommands() {
options: resolvedEditor.options
}
]);
// Make sure it becomes active too
await resolvedEditor.group.openEditor(resolvedEditor.editor);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册