Skip to content

Commit 1a7b770

Browse files
authored
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.
1 parent 626145c commit 1a7b770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patches/marketplace.diff

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Index: code-server/lib/vscode/src/vs/platform/product/common/product.ts
1919
===================================================================
2020
--- code-server.orig/lib/vscode/src/vs/platform/product/common/product.ts
2121
+++ code-server/lib/vscode/src/vs/platform/product/common/product.ts
22-
@@ -49,6 +49,16 @@ else if (globalThis._VSCODE_PRODUCT_JSON
22+
@@ -49,6 +49,17 @@ else if (globalThis._VSCODE_PRODUCT_JSON
2323
version: pkg.version
2424
});
2525
}
@@ -28,6 +28,7 @@ Index: code-server/lib/vscode/src/vs/platform/product/common/product.ts
2828
+ extensionsGallery: env.EXTENSIONS_GALLERY ? JSON.parse(env.EXTENSIONS_GALLERY) : (product.extensionsGallery || {
2929
+ serviceUrl: "https://open-vsx.org/vscode/gallery",
3030
+ itemUrl: "https://open-vsx.org/vscode/item",
31+
+ extensionUrlTemplate: "https://open-vsx.org/vscode/gallery/{publisher}/{name}/latest",
3132
+ resourceUrlTemplate: "https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}",
3233
+ controlUrl: "",
3334
+ recommendationsUrl: "",

0 commit comments

Comments
 (0)