# Drop active searchable item subscription when changing active item · gitcafe/zed

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

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

Visibility: public

Requested revision: b151e12890eabb95cb25edf9a6cc4cc72b122526

Requested commit: b151e12890eabb95cb25edf9a6cc4cc72b122526

Commit: b151e12890eabb95cb25edf9a6cc4cc72b122526

Tree: 8f6d5e6a0741f2bc6212e244fea44dec3bc12dc3

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Drop active searchable item subscription when changing active item

We were leaking the previous active item's subscription, which meant
that we would receive the `MatchesInvalidated` event as many times as
we changed items.

Co-Authored-By: Thorsten Ball <thorsten@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>

```

## Parents

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

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