Skip to content

Commit 0d1d04a

Browse files
committed
1 parent f2c4335 commit 0d1d04a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/terminal/browser/terminalGroupService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
166166
}
167167

168168
async showPanel(focus?: boolean): Promise<void> {
169+
if (this.instances.length === 0) {
170+
return;
171+
}
169172
const pane = this._viewsService.getActiveViewWithId(TERMINAL_VIEW_ID)
170173
?? await this._viewsService.openView(TERMINAL_VIEW_ID, focus);
171174
pane?.setExpanded(true);

0 commit comments

Comments
 (0)