From c8e638a741b9a88dbcf84227e3aa0ca1ad983252 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 14 Oct 2022 13:25:06 -0700 Subject: [PATCH] chore: refresh marketplace patch --- patches/marketplace.diff | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/patches/marketplace.diff b/patches/marketplace.diff index d079d2b0e..8ea1c762f 100644 --- a/patches/marketplace.diff +++ b/patches/marketplace.diff @@ -19,22 +19,22 @@ 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 -@@ -45,7 +45,14 @@ else if (typeof require?.__$__nodeRequir +@@ -50,7 +50,14 @@ else if (typeof require?.__$__nodeRequir + const pkg = require.__$__nodeRequire(joinPath(rootPath, 'package.json').fsPath) as { version: string }; + + Object.assign(product, { +- version: pkg.version ++ version: pkg.version, ++ 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", ++ resourceUrlTemplate: "https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}", ++ controlUrl: "", ++ recommendationsUrl: "", ++ }), + }); } - - Object.assign(product, { -- version: pkg.version -+ version: pkg.version, -+ 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", -+ resourceUrlTemplate: "https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}", -+ controlUrl: "", -+ recommendationsUrl: "", -+ }), - }); } - Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts =================================================================== --- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts