fix autoupdate

This commit is contained in:
Andrew Pareles 2025-01-23 21:14:10 -08:00
parent 458a5160b0
commit 657e752987

View file

@ -79,18 +79,13 @@ class VoidUpdateWorkbenchContribution extends Disposable implements IWorkbenchCo
} }
// check once 5 seconds after mount // check once 5 seconds after mount
this._register({
dispose: () => clearTimeout( const initId = setTimeout(() => autoCheck(), 5 * 1000)
setTimeout(() => autoCheck(), 5 * 1000) this._register({ dispose: () => clearTimeout(initId) })
)
})
// check every 3 hours // check every 3 hours
this._register({ const intervalId = setInterval(() => autoCheck(), 3 * 60 * 60 * 1000)
dispose: () => clearInterval( this._register({ dispose: () => clearInterval(intervalId) })
setInterval(() => autoCheck(), 3 * 60 * 60 * 1000)
)
})
} }
} }