# debugger: Add ability to only show stack frame entries from visible work trees \(\#37061\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 73b38c83068bdafd59d4f3f77adde8fa9e3b1281

Requested commit: 73b38c83068bdafd59d4f3f77adde8fa9e3b1281

Commit: 73b38c83068bdafd59d4f3f77adde8fa9e3b1281

Tree: b08ecad6a635851a590b85559d1ecbf97fb651f4

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Add ability to only show stack frame entries from visible work trees (#37061)

This PR adds a toggleable filter to the stack frame list that filters
out entries that don't exist within a user's project (visible work
trees). This works by keeping a vector of entry indices that exist
within a user's project and updates the list state based on these
entries when filtering the list.

I went with this approach so the stack frame list wouldn't have to
rebuild itself whenever the filter is toggled and it could persist its
state across toggles (uncollapsing a collapse list). It was also easier
to keep track of selected entries on toggle using the vector as well.

### Preview

https://github.com/user-attachments/assets/d86c7485-c885-4bbb-bebb-2f6385674925



Release Notes:

- debugger: Add option to only show stack frames from user's project in
stack frame list
```

## Parents

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

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