Don't clear timeouts in TimeBasedDebouncer if they've already been executed.

This commit is contained in:
Samuel Sampson
2021-08-17 22:20:04 +00:00
parent ae58302dfa
commit e778df672a
+1
View File
@@ -60,6 +60,7 @@ export class TimeBasedDebouncer implements IRenderDebouncer {
this._lastRefreshMs = Date.now();
this._innerRefresh();
this._additionalRefreshRequested = false;
this._refreshTimeoutID = undefined; // No longer need to clear the timeout
}, waitPeriodBeforeTrailingRefresh);
}
}