# debugger: Fix DebugAdapterDelegate::worktree_root always using the first visible worktree \(\#32585\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 04223f304bf6727728fc89056f7956a044af99ce

Requested commit: 04223f304bf6727728fc89056f7956a044af99ce

Commit: 04223f304bf6727728fc89056f7956a044af99ce

Tree: 6c3ad173f228bc3459b1db2098e5822c4e546d30

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
debugger: Fix DebugAdapterDelegate::worktree_root always using the first visible worktree (#32585)

Closes #32577

Release Notes:

- Fixed debugger malfunctioning when using ZED_WORKTREE_ROOT env
variable in multi-worktree workspaces.
```

## Parents

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

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