Skip to content

Commit 877c92f

Browse files
committed
aux window - do not merge empty groups on window close
1 parent 36272bb commit 877c92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class AuxiliaryEditorPartImpl extends EditorPart implements IAuxiliaryEditorPart
220220
}
221221

222222
private doClose(mergeGroupsToMainPart: boolean): void {
223-
if (mergeGroupsToMainPart) {
223+
if (mergeGroupsToMainPart && this.groups.some(group => group.count > 0)) {
224224
this.mergeAllGroups(this.editorPartsView.mainPart.activeGroup);
225225
}
226226

0 commit comments

Comments
 (0)