- Python language support with Pyright.
- 34 Installs
This extension is allowed to:
- Read & Write Files
- Launch Subprocesses
Pyreet adds improved language support for Python using the Pyright Language Server.
You will need to have Pyright installed on your system. We recommend installing Pyright on OSX with Homebrew.
$ brew install pyright
For other installation options see the Pyright Documentation.
By default Pyreet will look for
pyright-langserver at the location
/opt/homebrew/bin/pyright-langserver. If you have installed Pyright with Homebrew then this will likely be the correct path. If you have installed Pyright in some other way then you can set the path to
pyright-langserver on the extension settings view.
Most configuration is loaded through the standard Pyright configuration files. Pyreet can create a sample configuration file by running the "Create Pyright Config" command provided by this extension.
For a full list of configuration options available for Pyright, see the Pyright configuration options documentation page.
When updating Python dependencies in your virtual environment, you will likely need to restart the server for Pyright to read these changes. For convenience this extension provides the command "Restart Pyright" which will shutdown the running instance and start the server up again.
See the git repository readme for information on building this extension. Contributions are welcome, either in the form of issues or pull requests.
- More intelligent handling of changes to watched files.
- Poke server to pick up changes when adding and removing files in workspace.
- Clean up some unused settings calls.
- Fixed typo in readme.
- Added settings command to open extension settings view.
Initial release. Support for the Pyright language server.