From 1a7b770f5b43e8770d805957291f2413d37c4b8e Mon Sep 17 00:00:00 2001 From: Jinvien <8666750+jinvien@users.noreply.github.com> Date: Fri, 12 Sep 2025 06:26:49 +0800 Subject: [PATCH] Fix installing extensions from the Open VSX marketplace (#7479) Open VSX uses a non-standard format for the `/latest` URL which must be added to the gallery config. --- patches/marketplace.diff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/marketplace.diff b/patches/marketplace.diff index 25a22b093..479b47a55 100644 --- a/patches/marketplace.diff +++ b/patches/marketplace.diff @@ -19,7 +19,7 @@ Index: code-server/lib/vscode/src/vs/platform/product/common/product.ts =================================================================== --- code-server.orig/lib/vscode/src/vs/platform/product/common/product.ts +++ code-server/lib/vscode/src/vs/platform/product/common/product.ts -@@ -49,6 +49,16 @@ else if (globalThis._VSCODE_PRODUCT_JSON +@@ -49,6 +49,17 @@ else if (globalThis._VSCODE_PRODUCT_JSON version: pkg.version }); } @@ -28,6 +28,7 @@ Index: code-server/lib/vscode/src/vs/platform/product/common/product.ts + extensionsGallery: env.EXTENSIONS_GALLERY ? JSON.parse(env.EXTENSIONS_GALLERY) : (product.extensionsGallery || { + serviceUrl: "https://open-vsx.org/vscode/gallery", + itemUrl: "https://open-vsx.org/vscode/item", ++ extensionUrlTemplate: "https://open-vsx.org/vscode/gallery/{publisher}/{name}/latest", + resourceUrlTemplate: "https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}", + controlUrl: "", + recommendationsUrl: "",