From d75cc862f0e9481f13cb5b08cd4d6764f35d3327 Mon Sep 17 00:00:00 2001 From: jinvien Date: Sat, 6 Sep 2025 17:22:15 +0800 Subject: [PATCH 1/3] Fix https://open-vsx.org/vscode/gallery/ path error --- patches/marketplace.diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/marketplace.diff b/patches/marketplace.diff index 25a22b093b1d..3b9b73375660 100644 --- a/patches/marketplace.diff +++ b/patches/marketplace.diff @@ -89,3 +89,16 @@ Index: code-server/lib/vscode/src/vs/platform/extensionResourceLoader/common/ext } } +Index: code-server/lib/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifestService.ts +=================================================================== +--- code-server.orig/lib/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifestService.ts ++++ code-server/lib/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifestService.ts +@@ -47,7 +47,7 @@ export class ExtensionGalleryManifestSer + type: ExtensionGalleryResourceType.ExtensionQueryService + }, + { +- id: `${extensionsGallery.serviceUrl}/vscode/{publisher}/{name}/latest`, ++ id: `${extensionsGallery.serviceUrl}/{publisher}/{name}/latest`, + type: ExtensionGalleryResourceType.ExtensionLatestVersionUri + }, + { From 2ac01dde088d72b00428a2ff863fb02c66beec19 Mon Sep 17 00:00:00 2001 From: jinvien Date: Wed, 10 Sep 2025 01:30:22 +0800 Subject: [PATCH 2/3] Revert "Fix https://open-vsx.org/vscode/gallery/ path error" This reverts commit d75cc862f0e9481f13cb5b08cd4d6764f35d3327. --- patches/marketplace.diff | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/patches/marketplace.diff b/patches/marketplace.diff index 3b9b73375660..25a22b093b1d 100644 --- a/patches/marketplace.diff +++ b/patches/marketplace.diff @@ -89,16 +89,3 @@ Index: code-server/lib/vscode/src/vs/platform/extensionResourceLoader/common/ext } } -Index: code-server/lib/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifestService.ts -=================================================================== ---- code-server.orig/lib/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifestService.ts -+++ code-server/lib/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifestService.ts -@@ -47,7 +47,7 @@ export class ExtensionGalleryManifestSer - type: ExtensionGalleryResourceType.ExtensionQueryService - }, - { -- id: `${extensionsGallery.serviceUrl}/vscode/{publisher}/{name}/latest`, -+ id: `${extensionsGallery.serviceUrl}/{publisher}/{name}/latest`, - type: ExtensionGalleryResourceType.ExtensionLatestVersionUri - }, - { From c1269828e7dd83b6607dfb240c5a44e2cd081640 Mon Sep 17 00:00:00 2001 From: jinvien Date: Wed, 10 Sep 2025 01:32:54 +0800 Subject: [PATCH 3/3] fix: resolve OpenVSX gallery path issue by implementing custom extensionUrlTemplate --- patches/marketplace.diff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/marketplace.diff b/patches/marketplace.diff index 25a22b093b1d..479b47a557c1 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: "",