Browse Source

fix(update): avoid extra connection on manual mode (#2597)

Baptiste Augrain 3 weeks ago
parent
commit
8d8db1de1b
1 changed files with 6 additions and 1 deletions
  1. 6 1
      patches/version-1-update.patch

+ 6 - 1
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