# tab_switcher: Subscribe to workspace events instead of pane events \(\#44101\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 40a611bf34bf73f2149f133a6c332276f58d2248

Requested commit: 40a611bf34bf73f2149f133a6c332276f58d2248

Commit: 40a611bf34bf73f2149f133a6c332276f58d2248

Tree: b376978240302a5c176c3c28c86e0b102a54a712

Author: Andrew Farkas

Committer: GitHub

## Message

```
tab_switcher: Subscribe to workspace events instead of pane events (#44101)

Closes #43171

Previously the tab switcher only subscribed to events from a single pane
so closing tabs in other panes wouldn't cause the tab switcher to
update. This PR changes that so the tab switcher subscribes to the whole
workspace and thus updates when tabs in other panes are closed.

It also modifies the work in #44006 to sync selected index across the
whole workspace instead of just the original pane in the case of the
all-panes tab switcher.

Release Notes:

- Fixed all-panes tab switcher not updating in response to changes in
other panes
```

## Parents

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

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