Skip to content

Commit

Permalink
fix microsoft#179337 Task icon for terminal tab entry does not update…
Browse files Browse the repository at this point in the history
… with task label when terminal is reused
  • Loading branch information
weartist committed Apr 10, 2023
1 parent d9faba4 commit 7e8064e
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 7e8064e

Please sign in to comment.