From 7db339da8ef13a26138dfa59f2b40540ed70f8fa Mon Sep 17 00:00:00 2001 From: Jun-Fei Cherng Date: Wed, 12 Jun 2024 14:44:30 +0800 Subject: [PATCH] docs: add messages for v1.2.0 Signed-off-by: Jun-Fei Cherng --- messages.json | 1 + messages/1.2.0.md | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 messages/1.2.0.md diff --git a/messages.json b/messages.json index 83ccdae..67a0593 100644 --- a/messages.json +++ b/messages.json @@ -1,3 +1,4 @@ { + "1.2.0": "messages/1.2.0.md", "1.1.5": "messages/1.1.5.md" } diff --git a/messages/1.2.0.md b/messages/1.2.0.md new file mode 100644 index 0000000..d112e29 --- /dev/null +++ b/messages/1.2.0.md @@ -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 %}", + } + } + ```