Skip to content

Releases: sublimelsp/LSP-pyright

1.4.0

12 Jun 06:37
a5a89a9
Compare
Choose a tag to compare

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 or venv 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 and plugin/ structure

1.3.9

05 Jun 06:39
a7df5d8
Compare
Choose a tag to compare
  • fix: local venv is not used under some circumstances

E.g.,

  1. There is an ".python-version" file but no "pyenv" is installed.
  2. "pyenv which python" will raises an exception.
  3. python_path is an empty string and None is returned.

But actually we want to test all direct subdirs later and shouldn't return None here.

1.3.8

05 Jun 06:39
4813762
Compare
Choose a tag to compare

1.3.7

03 Jun 03:47
7d9269b
Compare
Choose a tag to compare
  • fix: cannot get python path when there are both Pipfile and .env (#332)

1.3.6

30 May 04:25
aa40120
Compare
Choose a tag to compare

1.3.5

22 May 04:56
32ab215
Compare
Choose a tag to compare

1.3.4

16 May 04:25
326fe8e
Compare
Choose a tag to compare

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",
},

1.3.3

09 May 04:57
9d3dbcd
Compare
Choose a tag to compare

1.3.2

01 May 10:42
921cf5a
Compare
Choose a tag to compare

1.3.1

25 Apr 04:22
5539378
Compare
Choose a tag to compare