diff --git a/src/vs/workbench/contrib/terminal/browser/terminalService.ts b/src/vs/workbench/contrib/terminal/browser/terminalService.ts index 9f8a4350bb2..9a46e058c68 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalService.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalService.ts @@ -354,15 +354,13 @@ export class TerminalService implements ITerminalService { for (let term of remoteTerms.slice(1)) { this.createTerminal({ remoteAttach: term }); } - } else { + } else if (this.terminalInstances.length === 0) { // Remote, no terminals to attach to this.createTerminal(undefined, emptyTab); } - } else { - if (this.terminalInstances.length === 0) { - // Local, just create a terminal - this.createTerminal(); - } + } else if (this.terminalInstances.length === 0) { + // Local, just create a terminal + this.createTerminal(); } }