Releases: sublimelsp/LSP-pyright
Releases · sublimelsp/LSP-pyright
1.4.0
New Features
-
Allow users to decide the order of strategies finding venv
Previously, this is hard-coded. Now the user can specify the order of strategies in the settings.
By default, a.venv
orvenv
directory under the workspace project is prioritized.{ "settings": { "venvStrategies": [ "local_dot_venv", "env_var_conda_prefix", "env_var_virtual_env", "rye", "poetry", "pdm", "hatch", "pipenv", "pyenv", "any_subdirectory", ], } }
-
Templated status bar text
If a venv is detected, its information will be shown in that status bar.
The user can customize the status bar text with Jinja2 template grammar.{ "settings": { "statusText": "{% if venv %}venv: {{ venv.venv_prompt }}; py: {{ venv.python_version }}; by: {{ venv.finder_name }}{% endif %}", } }
Minors
- chore: update pyright 1.1.367
- fix:
update_schema.py
doesn't work due to upstream changes - refactor: use
boot.py
andplugin/
structure
1.3.9
- fix: local venv is not used under some circumstances
E.g.,
- There is an ".python-version" file but no "pyenv" is installed.
- "pyenv which python" will raises an exception.
python_path
is an empty string andNone
is returned.
But actually we want to test all direct subdirs later and shouldn't return None
here.
1.3.8
- chore: update pyright 1.1.366
1.3.7
1.3.6
- chore: update pyright 1.1.365
1.3.5
- chore: update pyright 1.1.364
1.3.4
Default Behavior Changes
Previously LSP-pyright has default python.analysis.diagnosticSeverityOverrides
overrides.
Now they are removed. If you like them, you can add them back to your settings.
"python.analysis.diagnosticSeverityOverrides": {
"reportDuplicateImport": "warning",
"reportImplicitStringConcatenation": "warning",
"reportUnboundVariable": "warning",
"reportUnusedClass": "information",
"reportUnusedFunction": "information",
"reportUnusedImport": "information",
"reportUnusedVariable": "information",
},
- chore: update pyright 1.1.363
1.3.3
- chore: update pyright 1.1.362
1.3.2
- chore: update pyright 1.1.361
1.3.1
- chore: update pyright 1.1.360