What's Changed
double click to insert inlay hints
basedpyright now supports double clicking inlay hints to insert them into your code. unlike pylance, this also works on Callable
types:
improved default value for pythonPath
configuring your python interpreter in pyright is needlessly confusing. if you aren't using vscode or you aren't running it from inside a virtual environment, you'll likely encounter errors as a result of pyright using the wrong interpreter. to fix this you'd have to use the venv
and venvPath
settings which are two separate settings for some reason.
in this release, basedpyright now detects the most common location for a virtual environment: a folder named .venv
in the project root, which it uses as the default value for pythonPath
. this means most users shouldn't have to manually configure basedpyright to use the correct python interpreter anymore. see the docs for more info
implemented by @cpprust in #1006
other changes
- fall back to chokidar file watcher if the lsp client doesn't support
capabilities.workspace.didChangeWatchedFiles.dynamicRegistration
by @DetachHead in #1011 - fix inlay hints incorrectly appearing on pseudo-generic classes by @DetachHead in #1021
- docs: correct typos and grammar in comments.md by @jamestrew in #1012
New Contributors
- @cpprust made their first contribution in #1006
- @jamestrew made their first contribution in #1012
Full Changelog: v1.24.0...v1.25.0