fix(browser): clear idle blink timer when handle is 0

_clearIdleTimer() used truthiness on _idleTimeout, so a setTimeout
handle of 0 would not be cleared. Compare against undefined, consistent
with RenderDebouncer rAF handling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Daniel Imms
2026-06-01 15:28:07 +00:00
committed by Cursor Agent
co-authored by Cursor
parent 69b11a1a48
commit 80468eeb4c
+1 -1
View File
@@ -694,7 +694,7 @@ class CursorBlinkStateManager {
}
private _clearIdleTimer(): void {
if (this._idleTimeout) {
if (this._idleTimeout !== undefined) {
this._coreBrowserService.window.clearTimeout(this._idleTimeout);
this._idleTimeout = undefined;
}