Microsoft Released “Pylance”, extension for VS Code
June 30, Microsoft released “Pylance”, an extension for Visual Studio Code. Pylance has the ability to boost the Python support on Visual Studio, and it is available for download from Visual Studio Code Marketplace for free.
Microsoft released Python Language Server in 2018 and has been supporting Python IntelliSense on Visual Studio Code. According to Microsoft, the feedback provided by the Python community has led them to bring Pylance as the improved version of Python Language Server.
Pylance complements Microsoft Python extension and uses the Language Server Protocol to communicate. It was developed as a new language server based on the static type checking tool Pyright, developed by Microsoft.
Type information is now expressed in function signature, and when hovering on symbols, it provides detailed information to help improve the quality of the code.
As being one of the most requested features, auto-imports is introduced in this release. It makes import suggestions in the completions list for installed and standard library modules. Also, it offers two modes for Type Checking Diagnostics.
Pylance has compatibility with IntelliCode and Jupyter Notebooks. It also includes native support for multi-root Workspaces, so multiple folders can be opened in the same session, and each folder can have the Pylance functionality.
According to Microsoft, Microsoft Python Language Server can be used in the short term, but in the long term, they have the plan to transition the Microsoft Python Language Server users to Pylance, and they will eventually deprecate and remove the old language server.
米Microsoft
https://www.microsoft.com
Pylance
https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance