diff --git a/src/vs/workbench/parts/terminal/browser/terminalTab.ts b/src/vs/workbench/parts/terminal/browser/terminalTab.ts index 14702feb80c80..0a57c99c16dbf 100644 --- a/src/vs/workbench/parts/terminal/browser/terminalTab.ts +++ b/src/vs/workbench/parts/terminal/browser/terminalTab.ts @@ -352,7 +352,9 @@ export class TerminalTab extends Disposable implements ITerminalTab { public get title(): string { let title = this.terminalInstances[0].title; for (let i = 1; i < this.terminalInstances.length; i++) { - title += `, ${this.terminalInstances[i].title}`; + if (this.terminalInstances[i].title) { + title += `, ${this.terminalInstances[i].title}`; + } } return title; }