From 3fbe5548e425da8ac0245b374be5048e5ca5c007 Mon Sep 17 00:00:00 2001 From: "sijie.zsj" Date: Mon, 9 Dec 2024 14:59:40 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=B8=82=E5=9C=BA=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gatsby-config.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 34fd7dfe..52757056 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -50,13 +50,6 @@ module.exports = { zh: '插件研发' } }, - { - slug: 'https://ide.cloud.alipay.com/marketplace/square', - title: { - en: 'Marketplace', - zh: '插件市场' - } - }, { slug: 'https://codeblitz.opensumi.com', title: { From 2fa0de4bd01f9f0627bd57080a42b68803e61ec3 Mon Sep 17 00:00:00 2001 From: "sijie.zsj" Date: Mon, 9 Dec 2024 15:01:40 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=BC=80=E5=8F=91=E6=96=87=E6=A1=A3=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=B8=82=E5=9C=BA=E7=9B=B8=E5=85=B3=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/extension/overview.en.md | 11 ----------- docs/extension/overview.zh.md | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/docs/extension/overview.en.md b/docs/extension/overview.en.md index 11e16f6d..84b413ec 100644 --- a/docs/extension/overview.en.md +++ b/docs/extension/overview.en.md @@ -87,14 +87,3 @@ In addition to the [VS Code Extension Samples](https://github.com/microsoft/vsco - Plain Webview Sample - Git Operation Sample - Command Sample? - -## Extension Marketplace - -Currently, OpenSumi supports two types of plugin marketplaces as shown below: - -![Extension Marketplace](https://img.alicdn.com/imgextra/i2/O1CN01Kq3jZf25zTjbBJWzR_!!6000000007597-2-tps-1906-732.png) - -- [AlipayCloud](https://ide.cloud.alipay.com/marketplace/square) —— A public extension marketplace service provided by Ant Group. -- [OpenVSX](https://open-vsx.org/) —— A public extension marketplace service provided by the Eclipse Foundation (with open source code). - -You can freely switch between sources according to your usage scenario, see the documentation for [Custom Extension Marketplace](../integrate/universal-integrate-case/custom-marketplace-entrypoint). diff --git a/docs/extension/overview.zh.md b/docs/extension/overview.zh.md index b75e35c6..ef573519 100644 --- a/docs/extension/overview.zh.md +++ b/docs/extension/overview.zh.md @@ -85,14 +85,3 @@ Worker 端拥有 WebWorker 环境运行时,如果你的插件包含一些计 - Plain Webview Sample - Git Operation Sample - Command Sample - -## 插件市场 - -当前 OpenSumi 支持两种插件市场,如下面所示: - -![Extension Marketplace](https://img.alicdn.com/imgextra/i2/O1CN01Kq3jZf25zTjbBJWzR_!!6000000007597-2-tps-1906-732.png) - -- [AlipayCloud](https://ide.cloud.alipay.com/marketplace/square) —— 蚂蚁集团开放的支付宝小程序云插件市场 -- [OpenVSX](https://open-vsx.org/) —— Eclipse 基金会开放的公共插件市场服务(源码开源) - -可以根据使用场景自由进行源的切换,见文档 [自定义插件市场源](../integrate/universal-integrate-case/custom-marketplace-entrypoint)。 From 8a333033005e72e713e3c7da69df9398366a7568 Mon Sep 17 00:00:00 2001 From: "sijie.zsj" Date: Mon, 9 Dec 2024 15:02:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=B8=82=E5=9C=BA=E7=9B=B8=E5=85=B3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-marketplace-entrypoint.en.md | 65 ------------------ .../custom-marketplace-entrypoint.zh.md | 66 ------------------- 2 files changed, 131 deletions(-) delete mode 100644 docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.en.md delete mode 100644 docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.zh.md diff --git a/docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.en.md b/docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.en.md deleted file mode 100644 index 77187c33..00000000 --- a/docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.en.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: custom-marketplace-entrypoint -title: Custom Extension Marketplace -slug: custom-marketplace-entrypoint -order: 8 ---- - -OpenSumi support both [Alipay CloudIDE Marketplace](https://ide.cloud.alipay.com/marketplace/square) and [Eclipse Open VSX](https://www.eclipse.org/community/eclipse_newsletter/2020/march/1.php), and can be switched between each other through configuration. At present, the default is the Alipay CloudIDE extension marketplace - - -## Configuration - -Generally, the initial project of the framework will use the configuration of the mirror site in two places, one is the download script to install the default extensions, and the other is the extension marketplace configuration when the framework is started. - - -### How to modify the download script - -The download script (`scripts/download.js`) uses the Alipay CloudIDE extension marketplace by default. If you need to switch, you can specify the extension marketplace type in the `download-extension` directive in the `package.json` file: - -```json -{ - "scripts": { - -"download-extension": "cross-env DEBUG=InstallExtension node scripts/download.js" - +"download-extension": "cross-env DEBUG=InstallExtension MARKETPLACE=openvsx node scripts/download.js" - } -} -``` - -### How to modify the plugin market source - -You can refer to the code here: [node/start-server.ts#L18](https://github.com/opensumi/opensumi-module-samples/blob/main/example/src/node/start-server.ts#L18) , add relevant parameter information in the configuration parameters of the Node process startup. The specific configuration is as follows: - -#### Alipay CloudIDE Marketplace - -```typescript -let opts: IServerAppOpts = { - ... - marketplace: { - endpoint: 'https://twebgwnet.alipay.com/atsmarketplace', - accountId: 'WWPLOa7vWXCUTSHCfV5FK7Su', - masterKey: 'i6rkupqyvC6Bc6CiO0yVLNqq', - }, - ... -}; -``` -The 'accountId' and 'masterKey' used in the above configuration are public keys provided by the Alipay CloudIDE Marketplace. By default, the key can access all public extension. If you need a custom key, please refer to [Alipay CloudIDE Marketplace](https://opendocs.alipay.com/cloud/0b5470) The content of the client management section in allows users to access private extension which hosted in the extension marketplace through custom keys - -#### Eclipse Open VSX - -```typescript -let opts: IServerAppOpts = { - ... - marketplace: { - endpoint: 'https://open-vsx.org/api', // Official Registry - // endpoint: 'https://marketplace.smartide.cn/api', // China Mirror - }, - ... -}; -``` - -If you encounter the problem that the extension marketplace cannot be accessed normally, please switch the entrypoint of the extension marketplace in time to solve the problem. - -## Extension Synchronization Mechanism - -At present, OpenSumi has a certain lag (about three months) in compatibility with the VSCode extension API. Therefore, the VSCode extension hosted in the marketplace must first scan the code before synchronizing. If you find that the extension you want is missing, you can put forward the extension synchronization requirement in the [OpenSumi Issues](https://github.com/opensumi/core/issues) issues list, and the project team members will scan the extension and synchronize the available version. diff --git a/docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.zh.md b/docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.zh.md deleted file mode 100644 index 032fc569..00000000 --- a/docs/integrate/universal-integrate-case/custom-marketplace-entrypoint.zh.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -id: custom-marketplace-entrypoint -title: 自定义插件市场镜像源 -slug: custom-marketplace-entrypoint -order: 8 ---- - -## 概览 - -OpenSumi 同时支持 [支付宝小程序云 CloudIDE 插件市场](https://ide.cloud.alipay.com/marketplace/square) 及 [Eclipse Open VSX](https://www.eclipse.org/community/eclipse_newsletter/2020/march/1.php) ,两个插件市场可以通过配置相互切换,目前默认使用的是支付宝小程序云 CloudIDE 插件市场 - - -## 配置方式 - -一般框架的初始项目会在两个地方使用插件市场相关的配置,一个为安装默认插件的下载脚本,另一个则是框架启动时的插件市场配置。 - -### 如何修改下载脚本 - -下载脚本(`scripts/download.js`)默认使用的是支付宝小程序云 CloudIDE 插件市场,如需切换,可以在 `package.json` 文件的 `download-extension` 命令中指定插件市场类型: - -```json -{ - "scripts": { - -"download-extension": "cross-env DEBUG=InstallExtension node scripts/download.js" - +"download-extension": "cross-env DEBUG=InstallExtension MARKETPLACE=openvsx node scripts/download.js" - } -} -``` - -### 如何修改插件市场源 - -可以参考这里的代码:[node/start-server.ts#L18](https://github.com/opensumi/opensumi-module-samples/blob/main/example/src/node/start-server.ts#L18),在 Node 进程启动的配置参数中添加相关参数信息,具体配置如下: - -#### 支付宝小程序云 CloudIDE 插件市场 - -```typescript -let opts: IServerAppOpts = { - ... - marketplace: { - endpoint: 'https://twebgwnet.alipay.com/atsmarketplace', - accountId: 'WWPLOa7vWXCUTSHCfV5FK7Su', - masterKey: 'i6rkupqyvC6Bc6CiO0yVLNqq', - }, - ... -}; -``` -上文配置中使用的 `accountId` 及 `masterKey` 是由支付宝小程序云 CloudIDE 插件市场提供的公共密钥,该密钥默认可访问插件市场中全部的公开插件,如需要自定义密钥,可以参考 [支付宝小程序云 CloudIDE 插件市场文档](https://opendocs.alipay.com/cloud/0b5470) 中的客户端管理一节的内容,通过自定义密钥,用户可以访问自己托管在插件市场中的私有插件 - -#### Eclipse Open VSX - -```typescript -let opts: IServerAppOpts = { - ... - marketplace: { - endpoint: 'https://open-vsx.org/api', // Official Registry - // endpoint: 'https://marketplace.smartide.cn/api', // China Mirror - }, - ... -}; -``` - -如遇到插件市场无法正常访问问题,请及时切换相应的插件插件源解决该问题。 - -## 插件同步机制 - -目前 OpenSumi 对 VSCode 插件 API 的兼容有一定的滞后性(约三个月),因此托管在插件市场中的 VSCode 插件在同步前必须先进行代码扫描,如果用户在使用支付宝小程序云 CloudIDE 插件市场时发现缺少想要的插件,可以在 [OpenSumi 项目主仓库](https://github.com/opensumi/core/issues) issues 列表中提出插件同步需求,项目组成员会对插件扫描后同步可用的版本。 \ No newline at end of file