Skip to content

Commit 0713fa9

Browse files
committed
vscode: Fix update check timeouts
Forgot an extra 60 in the check interval and the notification timeout. Very unfortunate. Check has been allowed every 168 minutes instead of every week.
1 parent cc18175 commit 0713fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/dev/vscode.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152
988988
+ const lastNoti = storageService.getNumber('csLastUpdateNotification', StorageScope.GLOBAL);
989989
+ if (lastNoti) {
990990
+ // Only remind them again after 1 week.
991-
+ const timeout = 1000*60*24*7;
991+
+ const timeout = 1000*60*60*24*7;
992992
+ const threshold = lastNoti + timeout;
993993
+ if (Date.now() < threshold) {
994994
+ return;
@@ -1007,7 +1007,7 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152
10071007
+ logService.debug(`failed to check for update: ${error}`);
10081008
+ }).finally(() => {
10091009
+ // Check again every 6 hours.
1010-
+ setTimeout(updateLoop, 1000*60*6);
1010+
+ setTimeout(updateLoop, 1000*60*60*6);
10111011
+ });
10121012
+ };
10131013
+

0 commit comments

Comments
 (0)