Skip to content

Commit 31f513a

Browse files
author
Kartik Raj
committed
Update terminal status even if it is already present
1 parent 2c51b3d commit 31f513a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/terminal/browser/terminalStatusList.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ export class TerminalStatusList extends Disposable implements ITerminalStatusLis
9595
if (oldPrimary !== newPrimary) {
9696
this._onDidChangePrimaryStatus.fire(newPrimary);
9797
}
98+
} else {
99+
this._statuses.set(status.id, status);
100+
// It maybe the case that status hasn't changed, there isn't a good way to check this based on
101+
// `ITerminalStatus`, so just fire the event anyway.
102+
this._onDidAddStatus.fire(status);
98103
}
99104
}
100105

0 commit comments

Comments
 (0)