-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jun-Fei Cherng <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %}", | ||
} | ||
} | ||
``` |