# Collect main worktree paths on threads, and query them in the sidebar \(\#52945\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 20368bae44cd2a91bb6fd72045a424593dd9c550

Requested commit: 20368bae44cd2a91bb6fd72045a424593dd9c550

Commit: 20368bae44cd2a91bb6fd72045a424593dd9c550

Tree: 6740be2db06747db8cf3d4a99b7e983127dc7a6b

Author: Mikayla Maki

Committer: GitHub

## Message

```
Collect main worktree paths on threads, and query them in the sidebar (#52945)

This PR has us collecting the main worktree path metadata for the
sidebar, allows us to query by that path, and in the interim adds in
logic for querying the main worktree paths. This means that, as this
change percolates, there shouldn't be much difference between opening a
workspace to a linked worktree, and opening a workspace to the main
worktree.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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