Skip to content

Commit

Permalink
Merge pull request #61981 from mynetx/hotfix/terminal-split-hide-unde…
Browse files Browse the repository at this point in the history
…fined-title

Hide undefined title showing briefly on term split
  • Loading branch information
Tyriar authored Dec 12, 2018
2 parents 19d4bb6 + b6e1b95 commit 2db30c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/parts/terminal/browser/terminalTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2db30c9

Please sign in to comment.