From 0713fa900bf6af47f60aa3eb0c15f76d1a930ef0 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 25 Nov 2020 11:50:38 -0500 Subject: [PATCH] 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. --- ci/dev/vscode.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/dev/vscode.patch b/ci/dev/vscode.patch index b88639c7..40d6789e 100644 --- a/ci/dev/vscode.patch +++ b/ci/dev/vscode.patch @@ -988,7 +988,7 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152 + const lastNoti = storageService.getNumber('csLastUpdateNotification', StorageScope.GLOBAL); + if (lastNoti) { + // Only remind them again after 1 week. -+ const timeout = 1000*60*24*7; ++ const timeout = 1000*60*60*24*7; + const threshold = lastNoti + timeout; + if (Date.now() < threshold) { + return; @@ -1007,7 +1007,7 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152 + logService.debug(`failed to check for update: ${error}`); + }).finally(() => { + // Check again every 6 hours. -+ setTimeout(updateLoop, 1000*60*6); ++ setTimeout(updateLoop, 1000*60*60*6); + }); + }; +