From 7e8064edad6d9658a295e5d37efebdebc9a77b6d Mon Sep 17 00:00:00 2001 From: weartist Date: Mon, 10 Apr 2023 18:49:40 +0800 Subject: [PATCH] fix #179337 Task icon for terminal tab entry does not update with task label when terminal is reused --- src/vs/workbench/contrib/terminal/browser/terminalInstance.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts index 70d75777da40b..ef24696f885a3 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts @@ -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);