发布于: -/最后更新: -/1 分钟/

如何让code-server使用vscode官方插件仓库

摘要

修改 `/usr/lib/code-server/lib/vscode/product.json` 文件,在 `linkProtectionTrustedDomains` 中添加 `https://marketplace.visualstudio.com`,并更新 `extensionsGallery` 的相关服务地址。保存后重启即可。

转载自:

https://www.rehiy.com/

如何让 code-server 使用 vscode 官方插件仓库

修改/usr/lib/code-server/lib/vscode/product.json文件

修改代码块:

JSON
"linkProtectionTrustedDomains": [
  "https://open-vsx.org"
],

为:

JSON
"linkProtectionTrustedDomains": [
  "https://open-vsx.org",
  "https://marketplace.visualstudio.com"
],
"extensionsGallery": {
  "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
  "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
  "itemUrl": "https://marketplace.visualstudio.com/items",
  "controlUrl": "",
  "recommendationsUrl": ""
},

保存后重启即可。

正文结束