# Enable terminal activation for uv-managed environments \(\#45949\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8813abed0042bf61954c92c668b8a06449e52a26)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8813abed0042bf61954c92c668b8a06449e52a26

Requested commit: 8813abed0042bf61954c92c668b8a06449e52a26

Commit: 8813abed0042bf61954c92c668b8a06449e52a26

Tree: d714b07071d866805289d74636209169bd13cdc9

Author: Xin Zhao

Committer: GitHub

## Message

```
Enable terminal activation for uv-managed environments (#45949)

Currently, the Python toolchain can identify `uv` and `uv-workspace`
environments (showing the correct labels in the UI), but it fails to
activate them when opening a new terminal. This is because the
activation script resolution and command generation logic were missing
for these environment kinds.

This PR adds `uv` and `uv-workspace` to the standard virtual environment
activation flow. Since `uv` creates environments with a standard `venv`
structure, we can reuse the existing `resolve_venv_activation_scripts`
logic to find and execute the appropriate `activate` scripts for
different shells.

Release Notes:

- Fixed terminal activation for `uv` and `uv-workspace` Python
environments.
```

## Parents

- [01b716cf12199c82b480e5f2a7afb12128d273a4](https://git.cafe/gitcafe/zed/commit/01b716cf12199c82b480e5f2a7afb12128d273a4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8813abed0042bf61954c92c668b8a06449e52a26?format=markdown)
