Skip to content

Commit

Permalink
docs: add messages for v1.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jun-Fei Cherng <[email protected]>
  • Loading branch information
jfcherng committed Jun 12, 2024
1 parent 5ccf079 commit 7db339d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions messages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"1.2.0": "messages/1.2.0.md",
"1.1.5": "messages/1.1.5.md"
}
40 changes: 40 additions & 0 deletions messages/1.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
=> 1.2.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` or `venv` directory under the workspace project is prioritized.

```js
{
"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.

```js
{
"settings": {
"statusText": "{% if venv %}venv: {{ venv.venv_prompt }}; py: {{ venv.python_version }}; by: {{ venv.finder_name }}{% endif %}",
}
}
```

0 comments on commit 7db339d

Please sign in to comment.