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 f2c4335 commit 0d1d04aCopy full SHA for 0d1d04a
src/vs/workbench/contrib/terminal/browser/terminalGroupService.ts
@@ -166,6 +166,9 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
166
}
167
168
async showPanel(focus?: boolean): Promise<void> {
169
+ if (this.instances.length === 0) {
170
+ return;
171
+ }
172
const pane = this._viewsService.getActiveViewWithId(TERMINAL_VIEW_ID)
173
?? await this._viewsService.openView(TERMINAL_VIEW_ID, focus);
174
pane?.setExpanded(true);
0 commit comments