mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Update terminal status even if it is already present
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user