Cursor Pyright "Python" extension information

What is this extension inside Cursor? Is it the official replacement for the blocked Pylance extension? I found it by accident on the Cursor marketplace but I cannot seem to find any official references to it:

I cannot find it on the official VSCode marketplace, only in Cursor within the extension marketplace when I type “Cursor Pyright”. Does anyone have any information?

Based on what I saw on VSCode related forums, MS has yanked out several core extensions for several languages, various communities made their own, so apparently has Cursor.

@T1000

Yeah I suppose, but what is the difference between this one and the one that is sometimes bundled within Cursor? (this is the other one, and seems to be more outdated)

Also, the docs never specify any of this, maybe they are preparing for a mature custom extension release?

For some reason I cant access marketplace, is there a git repo linked in the extension?

@T1000

No, I can’t find anything, I can only find it inside Cursor itself inside the extension bar when you search for Cursor Pyright or Pyright I think. The weird thing is also that the extension is just called “Python”. My colleague can also find it by searching.

It seems to be something custom that can not be found on the normal VSCode marketplace or such; only in Cursor itself?

There are separate marketplaces apart of the ms marketplace. If ms yanks the access to an extension on their marketplace other communnities have been adding them to their own marketplaces for a while.

Hey, yes, this is our extension. Ping @ravirahman so he can explain it in more detail.

2 Likes

@deanrie Thanks for the reply!

Hi @ravirahman, a few questions about the extension:

  • Is this the preferred extension to use now for type checking for Python within Cursor?
  • What is the difference between this extension and the older cursor Pyright one that was bundled in my Cursor installation (but weirdly enough not on my colleagues pc). I initially removed that extension but couldn’t find it back, so I found the one linked in this bullet point.
  • I know Microsoft blocks the newer versions of Pylance on VSCode forks, but is the older version that is still accessible still fully functional or is it broken in some way?
  • Are these Cursor extensions published on their own marketplace? Since I cannot find these on the VSCode extension marketplace

I couldn’t find much information for these questions on the internet or the forum. Thanks in advance

Hi @Jxlle , thanks for these questions!

Yes, this is the recommended extension for Python. We built this by forking BasedPyright and changing a few of the settings to more closely algin with the Pylance defaults. Under the hood, it uses the same Pyright type checker and open-source Python debugger.

As some users have reported issues with the older Pylance extension, we are offering this one instead as an officially supported alternative. Since all of the internals are the same, we intend that it can be a drop in replacement.

While we do run our own extension marketplace, it is accessible only within Cursor (there is no website for it). We do not publish our extensions on Open-VSX or the Microsoft VSCode Marketplace.

Best,
Ravi