Fix potential cell statusbar issue

This commit is contained in:
Rob Lourens
2021-04-27 17:07:33 -07:00
parent 779434d2d1
commit 75615b7627
@@ -174,11 +174,11 @@ class TimerCellStatusBarHelper extends Disposable {
) {
super();
this._scheduler = this._register(new RunOnceScheduler(() => this._update(), TimerCellStatusBarHelper.UPDATE_INTERVAL));
this._update();
this._register(
Event.filter(this._cell.model.onDidChangeMetadata, e => !!e.runStateChanged)
(() => this._update()));
this._scheduler = this._register(new RunOnceScheduler(() => this._update(), TimerCellStatusBarHelper.UPDATE_INTERVAL));
}
private async _update() {