We are going to edit cursors settings to point to the microsoft extensions marketplace.
- Remove all extensions and exit Cursor.
- Locate your Cursor
project.json
file depending on your platform and open it.- On MacOS:
/Applications/Cursor.app/Contents/Resources/app/product.json
- On Windows:
C:\Users\<user_name>\AppData\Local\Programs\cursor\resources\app\product.json
- On Linux:
/usr/lib/code/product.json
- On MacOS:
- Locate the object value for key
extensionsGallery
in the json document.
{
"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": "",
"recommendationsUrl": "",
"nlsBaseUrl": "",
"publisherUrl": ""
}
- Edit it to look like this:
{
"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": "",
"recommendationsUrl": "",
"nlsBaseUrl": "",
"publisherUrl": ""
}
- Reopen Cursor.app and install the following extensions:
ms-python.python
ms-python.vscode-pylance
ms-python.debugpy
- Make sure in your settings that
python.languageServer
is set to "Pylance"
Enjoy!
PS: you may need to goto your settings.json to remove any theme settings, because having a broken theme looks exactly like this same problem. In my case cursor had copied over my settings from vscode and they pointed to a theme that wasn't yet installed in cursor, removing and then setting the theme manually worked when I though for sure I had broken it again.
@Nivg locally, we fix this issue by patching
product.json
to shift away from the Cursor extension gallery and instead point to the Microsoft extension gallery.We also bump the extension versions to the latest.
This allows us to install current and unmodified
ms-python.python
(and other) extensions via locally downloaded .VSIX files that don't depend onanysphere.pyright
.None of these local fixes have any effect on remote environments.
In remote environments, Cursor (VS Code) has its own
product.json
file and a modified version of thems-python.python
extension which declares a dependency on Cursor's Pyright (ID:anysphere.pyright
) extension.I didn't bother automating the rewrite of the remote
product.json
file, nor investigating how the patchedms-python.python
extension gets there.Instead, I use this workaround once per remote environment:
I like to keep "Auto Update" checkbox unchecked to upgrade manually via .VSIX files instead.
Below are the direct download links to the current versions of Python extensions for
linux-x64
andlinux-arm64
architectures:ms-python.python
ms-python.debugpy
ms-python.vscode-pylance