cursor拓展/插件下载慢解决办法

问题


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

问题原因


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

解决方案

(笔者: cursor版本0.50.5实测有效)


打开Cursor安装目录下的 resources\app\product.json 文件。

修改文件中 extensionsGallery 的配置(将下文的内容复制并覆盖原本内容)。

修改插件市场的地址后,重启Cursor。原始配置:
 

"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": "https://api2.cursor.sh/extensions-control",
  "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": "https://api2.cursor.sh/extensions-control",
  "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 market-CSDN博客
https://blog.csdn.net/qq_64107840/article/details/147421815

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值