Progress polish

Fixes #5287
Fixes #5288
Fixes #5289
This commit is contained in:
Daniel Imms
2025-01-09 05:32:36 -08:00
parent 330e91ef08
commit dc9084b5ad
2 changed files with 28 additions and 13 deletions
+3 -2
View File
@@ -37,8 +37,9 @@ export class ProgressAddon implements ITerminalAddon, IProgressApi {
private _seqHandler: IDisposable | undefined;
private _st: ProgressType = ProgressType.REMOVE;
private _pr = 0;
private _onChange: Emitter<IProgressState> | undefined;
public onChange: Event<IProgressState> | undefined;
// HACK: This uses ! to align with the API, this should be fixed when 5283 is resolved
private _onChange!: Emitter<IProgressState>;
public onChange!: Event<IProgressState>;
public dispose(): void {
this._seqHandler?.dispose();