Skip to content

Commit 1ed18b4

Browse files
committed
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.
1 parent 2a5e601 commit 1ed18b4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

patches/marketplace.diff

+21
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,24 @@ Index: code-server/lib/vscode/src/vs/platform/extensionResourceLoader/common/ext
8282
}
8383

8484
}
85+
Index: code-server/lib/vscode/src/vs/platform/extensionManagement/node/extensionDownloader.ts
86+
===================================================================
87+
--- code-server.orig/lib/vscode/src/vs/platform/extensionManagement/node/extensionDownloader.ts
88+
+++ code-server/lib/vscode/src/vs/platform/extensionManagement/node/extensionDownloader.ts
89+
@@ -109,12 +109,16 @@ export class ExtensionsDownloader extend
90+
}
91+
92+
private shouldVerifySignature(extension: IGalleryExtension): boolean {
93+
+ return false
94+
+
95+
+ // @ts-expect-error
96+
if (!extension.isSigned) {
97+
this.logService.info(`Extension is not signed: ${extension.identifier.id}`);
98+
return false;
99+
}
100+
101+
const value = this.configurationService.getValue('extensions.verifySignature');
102+
+ // @ts-expect-error
103+
return isBoolean(value) ? value : true;
104+
}
105+

0 commit comments

Comments
 (0)