From fc8f76ad58fe165e0b3dba6f4ed565741707f1ba Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Wed, 7 Jan 2026 23:25:34 +0100 Subject: [PATCH] fix(windows): remove blocking code for versioned setup (#2658) --- patches/windows/disable-versioned-resources.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/patches/windows/disable-versioned-resources.patch b/patches/windows/disable-versioned-resources.patch index 32f3ada..e65dba4 100644 --- a/patches/windows/disable-versioned-resources.patch +++ b/patches/windows/disable-versioned-resources.patch @@ -30,3 +30,18 @@ index a7b01f0..cc60676 100644 - issPath = path.join(import.meta.dirname, 'win32', 'code-insider.iss'); - } const originalProductJsonPath = path.join(sourcePath, versionedResourcesFolder, 'resources/app/product.json'); +diff --git a/src/vs/platform/update/electron-main/updateService.win32.ts b/src/vs/platform/update/electron-main/updateService.win32.ts +index ae4fd9c..2572548 100644 +--- a/src/vs/platform/update/electron-main/updateService.win32.ts ++++ b/src/vs/platform/update/electron-main/updateService.win32.ts +@@ -94,10 +94,2 @@ export class Win32UpdateService extends AbstractUpdateService implements IRelaun + protected override async initialize(): Promise { +- if (this.environmentMainService.isBuilt) { +- const cachePath = await this.cachePath; +- app.setPath('appUpdate', cachePath); +- try { +- await unlink(path.join(cachePath, 'session-ending.flag')); +- } catch { } +- } +- + if (this.productService.target === 'user' && await this.nativeHostMainService.isAdmin(undefined)) {