- Pyreet
- Python language support with Pyright.
- 34 Installs
-
This extension is allowed to:
- Read & Write Files
- Launch Subprocesses
Readme
Pyreet adds improved language support for Python using the Pyright Language Server.
Requirements
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.
Usage
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.
Configuration
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.
Development
See the git repository readme for information on building this extension. Contributions are welcome, either in the form of issues or pull requests.
Changelog
Version 1.1.2
Fixed
- More intelligent handling of changes to watched files.
Version 1.1.1
Fixed
- Poke server to pick up changes when adding and removing files in workspace.
- Clean up some unused settings calls.
- Fixed typo in readme.
Version 1.1.0
Added
- Added settings command to open extension settings view.
Version 1.0.0
Initial release. Support for the Pyright language server.