Skip to content

Commit 4b54454

Browse files
committed
Don't restore panel terminal when running task
1 parent cf24747 commit 4b54454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class TerminalViewPane extends ViewPane {
126126
}
127127

128128
private _initializeTerminal() {
129-
if (this.isBodyVisible() && this._terminalService.isProcessSupportRegistered && this._terminalService.connectionState === TerminalConnectionState.Connected && this._terminalService.restoredGroupCount === 0) {
129+
if (this.isBodyVisible() && this._terminalService.isProcessSupportRegistered && this._terminalService.connectionState === TerminalConnectionState.Connected && this._terminalService.restoredGroupCount === 0 && this._terminalGroupService.groups.length === 0) {
130130
this._terminalService.createTerminal({ location: TerminalLocation.Panel });
131131
}
132132
}

0 commit comments

Comments
 (0)