Skip to content

Commit 5952668

Browse files
committed
Re-open with does not focus inactive editor (fix microsoft#134131)
1 parent 051a07a commit 5952668

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/browser/parts/editor/editorCommands.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ function registerCloseEditorCommands() {
925925
if (!isEditorInputWithOptionsAndGroup(resolvedEditor)) {
926926
return;
927927
}
928+
929+
// Replace editor with resolved one
928930
await resolvedEditor.group.replaceEditors([
929931
{
930932
editor: editor,
@@ -933,6 +935,9 @@ function registerCloseEditorCommands() {
933935
options: resolvedEditor.options
934936
}
935937
]);
938+
939+
// Make sure it becomes active too
940+
await resolvedEditor.group.openEditor(resolvedEditor.editor);
936941
}
937942
});
938943

0 commit comments

Comments
 (0)