编程开发

关注公众号 jb51net

关闭
软件教程 > 编程开发 >

Cursor插件市场打不开怎么办? Cursor插件市场无法打开或加载缓慢解决办法

脚本之家

问题描述

在Cursor商店中,无法下载所需的插件,或者搜索插件时需要等待很长时间。

error while fetching extensions.failed to fetch

原因分析

Cursor默认使用的插件市场并非VS Code的插件市场,且由于国内网络环境的限制,可能无法正常访问。

解决方案

打开cursor安装目录下的resources\app\product.json文件,修改extensionsGallery中属性resourceUrlTemplate、serviceUrl值,修改后值清单如下:

原始配置:

"extensionsGallery": {
  "galleryId": "cursor",
  "serviceUrl": "https://marketplace.cursorapi.com/_apis/public/gallery",
  "itemUrl": "https://marketplace.cursorapi.com/items",
  "resourceUrlTemplate": "https://marketplace.cursorapi.com/{publisher}/{name}/{version}/{path}",
  "controlUrl": "",
  "extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
  "recommendationsUrl": "",
  "nlsBaseUrl": "",
  "publisherUrl": ""
},

修改后的配置:

"extensionsGallery": {
  "galleryId": "cursor",
  "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
  "itemUrl": "https://marketplace.visualstudio.com/items",
  "resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}",
  "controlUrl": "",
  "extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
  "recommendationsUrl": "",
  "nlsBaseUrl": "https://www.vscode-unpkg.net/_lp/",
  "publisherUrl": "https://marketplace.visualstudio.com/publishers"
},

修改对比:

推荐阅读:Cursor登录按钮点击没反应怎么办? Cursor无法登录的解决方案