From 31f513a2e3537474c4a744a9b3332b60f3051f77 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 26 Apr 2023 01:35:02 +0000 Subject: [PATCH] Update terminal status even if it is already present --- .../workbench/contrib/terminal/browser/terminalStatusList.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalStatusList.ts b/src/vs/workbench/contrib/terminal/browser/terminalStatusList.ts index 4436d3645f577..68a867eb313e8 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalStatusList.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalStatusList.ts @@ -95,6 +95,11 @@ export class TerminalStatusList extends Disposable implements ITerminalStatusLis if (oldPrimary !== newPrimary) { this._onDidChangePrimaryStatus.fire(newPrimary); } + } else { + this._statuses.set(status.id, status); + // It maybe the case that status hasn't changed, there isn't a good way to check this based on + // `ITerminalStatus`, so just fire the event anyway. + this._onDidAddStatus.fire(status); } }