# python: Improve sorting order of toolchains to give higher precedence to project-local virtual environments that are within current subproject \(\#44141\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0d80b452fb8c986d8ff060a34047e88dcbf10f1a

Requested commit: 0d80b452fb8c986d8ff060a34047e88dcbf10f1a

Commit: 0d80b452fb8c986d8ff060a34047e88dcbf10f1a

Tree: 7837be6a169f5119f8633009857acac44301e8d0

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
python: Improve sorting order of toolchains to give higher precedence to project-local virtual environments that are within current subproject (#44141)

Closes #44090

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>

Release Notes:

- python: Improved sorting order of toolchains in monorepos with
multiple local virtual environments.
- python: Fixed toolchain selector not having an active toolchain
selected on open.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
Co-authored-by: Smit <smit@zed.dev>
```

## Parents

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

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