Merge pull request #180903 from microsoft/kartik/updatestatus

This commit is contained in:
Kartik Raj
2023-04-26 13:37:23 -07:00
committed by GitHub

View File

@@ -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);
}
}