From 65bb0ec307376d04de0c61baaf28bca63e164249 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Tue, 20 Oct 2020 16:36:32 -0700 Subject: [PATCH] Fix remote integration tests --- .../contrib/terminal/browser/terminalService.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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(); } }