Skip to content

Commit

Permalink
Merge pull request #179596 from weartist/fix_terminal_task_icon_not_u…
Browse files Browse the repository at this point in the history
…pdate

fix #179337 Task icon for terminal tab entry does not update with task label when terminal is reused
  • Loading branch information
meganrogge authored Apr 13, 2023
2 parents 6f04217 + 7e8064e commit 01830be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this._initialCwd = value;
this._cwd = this._initialCwd;
this._setTitle(this.title, TitleEventSource.Config);
this._icon = this._shellLaunchConfig.attachPersistentProcess?.icon || this._shellLaunchConfig.icon;
this._onIconChanged.fire({ instance: this, userInitiated: false });
break;
case ProcessPropertyType.Title:
this._setTitle(value ?? '', TitleEventSource.Process);
Expand Down

0 comments on commit 01830be

Please sign in to comment.