Skip to content

Commit

Permalink
feat: use openvsx
Browse files Browse the repository at this point in the history
  • Loading branch information
conwnet committed Dec 3, 2024
1 parent be3008a commit 90030dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 36 deletions.
26 changes: 0 additions & 26 deletions functions/api/vscode-unpkg/[[catchall]].ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const resolvePlatformState = (): [Platform, string] => {
(window as any).vscodeWeb = {
commands: vscodeCommands,
allowEditorLabelOverride: true,
additionalBuiltinExtensions: ['ms-vscode.anycode'],
additionalBuiltinExtensions: [],
webviewEndpoint: staticAssetsPrefix + '/vscode/vs/workbench/contrib/webview/browser/pre',
productConfiguration: createProductConfiguration(platform),
initialColorTheme: { themeType: 'dark' as any },
Expand Down
14 changes: 5 additions & 9 deletions src/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ export const createProductConfiguration = (platform: Platform) => ({
applicationName: platform + '1s',
reportIssueUrl: 'https://github.com/conwnet/github1s/issues/new',
extensionsGallery: {
serviceUrl: 'https://marketplace.visualstudio.com/_apis/public/gallery',
cacheUrl: 'https://vscode.blob.core.windows.net/gallery/index',
itemUrl: 'https://marketplace.visualstudio.com/items',
resourceUrlTemplate: window.location.origin + '/api/vscode-unpkg/{publisher}/{name}/{version}/{path}',
controlUrl: 'https://az764295.vo.msecnd.net/extensions/marketplace.json',
recommendationsUrl: 'https://az764295.vo.msecnd.net/extensions/workspaceRecommendations.json.gz',
nlsBaseUrl: '',
publisherUrl: '',
resourceUrlTemplate:
'https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}',
serviceUrl: 'https://open-vsx.org/vscode/gallery',
itemUrl: 'https://open-vsx.org/vscode/item',
},
linkProtectionTrustedDomains: [
'*.github.com',
Expand All @@ -27,8 +23,8 @@ export const createProductConfiguration = (platform: Platform) => ({
'*.microsoft.com',
'*.vercel.com',
'*.sourcegraph.com',
'*.gitpod.io',
'*.ossinsight.io',
'*.open-vsx.org',
],
extensionEnabledApiProposals: { 'ms-vscode.anycode': ['extensionsAny'] },
});

0 comments on commit 90030dd

Please sign in to comment.