Pylance installed in WSL but provides no language features

Hey, I see what’s going on. Pylance ms-python.vscode-pylance isn’t supported in Cursor due to Microsoft licensing restrictions. Instead, Cursor uses its own extension anysphere.cursorpyright, based on basedpyright GitHub - DetachHead/basedpyright: pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server · GitHub. It provides similar features like hover, autocomplete, go-to-definition, and so on.

Most likely, before you reinstalled Windows you were using cursorpyright, not Pylance.

What to do:

  • Manually remove Pylance ms-python.vscode-pylance
  • Install anysphere.cursorpyright from the Cursor marketplace, search for Python and look for publisher Anysphere
  • Reload the window

More details are in the official announcement about in-house extensions New In-house Extensions (C++, C#, SSH, DevContainers, WSL, Python).

Let me know if something still isn’t working in WSL after that.