From 8d8db1de1b584f47dc0bf4f23152a639db3fb797 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sat, 8 Nov 2025 02:48:10 +0100 Subject: [PATCH] fix(update): avoid extra connection on manual mode (#2597) --- patches/version-1-update.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/patches/version-1-update.patch b/patches/version-1-update.patch index 24722ab..3272bd6 100644 --- a/patches/version-1-update.patch +++ b/patches/version-1-update.patch @@ -49,7 +49,7 @@ index 199f433..a6cbb10 100644 + | "user"; \ No newline at end of file diff --git a/src/vs/platform/update/electron-main/abstractUpdateService.ts b/src/vs/platform/update/electron-main/abstractUpdateService.ts -index 48d0d86..840b9d3 100644 +index 48d0d86..d16dce7 100644 --- a/src/vs/platform/update/electron-main/abstractUpdateService.ts +++ b/src/vs/platform/update/electron-main/abstractUpdateService.ts @@ -14,6 +14,10 @@ import { IProductService } from '../../product/common/productService.js'; @@ -66,6 +66,11 @@ index 48d0d86..840b9d3 100644 + return `${productService.updateUrl}/${quality}/${platform}/${architecture}/latest.json`; + } } +@@ -203,3 +207,3 @@ export abstract class AbstractUpdateService implements IUpdateService { + +- if (mode === 'none') { ++ if (mode === 'none' || mode === 'manual') { + return false; diff --git a/src/vs/platform/update/electron-main/updateService.darwin.ts b/src/vs/platform/update/electron-main/updateService.darwin.ts index b78ebc5..a4a3b1d 100644 --- a/src/vs/platform/update/electron-main/updateService.darwin.ts