langserver.github.io icon indicating copy to clipboard operation
langserver.github.io copied to clipboard

Is Pylance also a Python language server?

Open nielsbom opened this issue 1 year ago • 3 comments

I'm not sure whether Pylance is a language server. The repo says it is.

If it is: I suggest we add it to langserver.org

nielsbom avatar Jan 13 '23 13:01 nielsbom

PRs are welcome :)

keegancsmith avatar Jan 13 '23 18:01 keegancsmith

Pylance is the default language support for Python in Visual Studio Code and is shipped as part of that extension as an optional dependency.

https://github.com/microsoft/pylance-release/blob/944a10793a6706ec0101efcfa8036a6da53fb3cc/README.md#L7

Installed extensions The Python extension will automatically install the Pylance, Jupyter and isort extensions to give you the best experience when working with Python files and Jupyter notebooks. However, Pylance is an optional dependency, meaning the Python extension will remain fully functional if it fails to be installed. You can also uninstall it at the expense of some features if you’re using a different language server.

https://github.com/microsoft/vscode-python/blob/5528e0efb9b8c91c83dfb356391085280fb63417/README.md#L12

goyalyashpal avatar Apr 02 '23 19:04 goyalyashpal

more in #309

I think you can get wrappers to use pyright as a LSP not sure. It’s used in Pylance but you can now only use pylance in Microsoft products. Personally, I wouldn’t bother with the latter because its not an open LSP which kind of makes it irrelevant in the LSP scene.

andrewcrook avatar Jul 26 '23 19:07 andrewcrook