Switch to new extensions API

This commit is contained in:
Asher 2020-02-19 14:36:42 -06:00
parent 51a5c77cb8
commit e5b68a8f4c
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 2 deletions

View File

@ -1815,7 +1815,7 @@ index 0000000000..2a39c524aa
+export const logger = baseLogger.named('vscode'); +export const logger = baseLogger.named('vscode');
diff --git a/src/vs/server/node/marketplace.ts b/src/vs/server/node/marketplace.ts diff --git a/src/vs/server/node/marketplace.ts b/src/vs/server/node/marketplace.ts
new file mode 100644 new file mode 100644
index 0000000000..9960ccfd07 index 0000000000..8956fc40d4
--- /dev/null --- /dev/null
+++ b/src/vs/server/node/marketplace.ts +++ b/src/vs/server/node/marketplace.ts
@@ -0,0 +1,174 @@ @@ -0,0 +1,174 @@
@ -1981,7 +1981,7 @@ index 0000000000..9960ccfd07
+ */ + */
+export const enableCustomMarketplace = (): void => { +export const enableCustomMarketplace = (): void => {
+ (<any>product).extensionsGallery = { // Use `any` to override readonly. + (<any>product).extensionsGallery = { // Use `any` to override readonly.
+ serviceUrl: process.env.SERVICE_URL || 'https://v1.extapi.coder.com', + serviceUrl: process.env.SERVICE_URL || 'https://extensions.coder.com/api',
+ itemUrl: process.env.ITEM_URL || '', + itemUrl: process.env.ITEM_URL || '',
+ controlUrl: '', + controlUrl: '',
+ recommendationsUrl: '', + recommendationsUrl: '',