We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051a07a commit 5952668Copy full SHA for 5952668
src/vs/workbench/browser/parts/editor/editorCommands.ts
@@ -925,6 +925,8 @@ function registerCloseEditorCommands() {
925
if (!isEditorInputWithOptionsAndGroup(resolvedEditor)) {
926
return;
927
}
928
+
929
+ // Replace editor with resolved one
930
await resolvedEditor.group.replaceEditors([
931
{
932
editor: editor,
@@ -933,6 +935,9 @@ function registerCloseEditorCommands() {
933
935
options: resolvedEditor.options
934
936
937
]);
938
939
+ // Make sure it becomes active too
940
+ await resolvedEditor.group.openEditor(resolvedEditor.editor);
941
942
});
943
0 commit comments