From 9b688d7cac2c4b775d792f4a40478e4f8a79f74c Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 6 Jun 2024 14:50:41 -0800 Subject: [PATCH] Disable extension signature verification This works around an issue where the Open VSX is not returning the expected zip. I think verification does not work anyway because @vscode/vsce-sign is missing in the OSS version. --- patches/marketplace.diff | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/patches/marketplace.diff b/patches/marketplace.diff index d46509e8c..a887091a2 100644 --- a/patches/marketplace.diff +++ b/patches/marketplace.diff @@ -82,3 +82,18 @@ Index: code-server/lib/vscode/src/vs/platform/extensionResourceLoader/common/ext } } +Index: code-server/lib/vscode/src/vs/platform/extensionManagement/node/extensionDownloader.ts +=================================================================== +--- code-server.orig/lib/vscode/src/vs/platform/extensionManagement/node/extensionDownloader.ts ++++ code-server/lib/vscode/src/vs/platform/extensionManagement/node/extensionDownloader.ts +@@ -114,7 +114,10 @@ export class ExtensionsDownloader extend + return false; + } + ++ return false ++ // @ts-expect-error + const value = this.configurationService.getValue('extensions.verifySignature'); ++ // @ts-expect-error + return isBoolean(value) ? value : true; + } +