Skip to content

Commit 246688a

Browse files
committed
1 parent 56aa7ff commit 246688a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/browser/parts/panel/panelPart.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
253253

254254
if (isActive) {
255255
this.compositeBar.activateComposite(panel.id);
256+
257+
// Only try to open the panel if it has been created and visible
258+
if (!activePanel && this.element && this.layoutService.isVisible(this.partId)) {
259+
this.doOpenPanel(panel.id);
260+
}
256261
}
257262
}
258263
}

0 commit comments

Comments
 (0)