Skip to content

Commit 635fc32

Browse files
committed
1 parent b85061a commit 635fc32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
207207
}
208208

209209
if (isActive) {
210-
if (!activePanel) {
210+
// Only try to open the panel if it has been created and visible
211+
if (!activePanel && this.element && this.layoutService.isVisible(Parts.PANEL_PART)) {
211212
this.doOpenPanel(panel.id);
212213
}
213214

0 commit comments

Comments
 (0)