# extension: Add \`ExtensionEvents\` for listening to extension-related events \(\#26562\) · gitcafe/zed

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

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

Visibility: public

Requested revision: acf9b22466fc0f1aa26c4a403278bef6a1560aaa

Requested commit: acf9b22466fc0f1aa26c4a403278bef6a1560aaa

Commit: acf9b22466fc0f1aa26c4a403278bef6a1560aaa

Tree: 3427c944ed577fb3f3858737ae0e101b8c0395e8

Author: Marshall Bowers

Committer: GitHub

## Message

```
extension: Add `ExtensionEvents` for listening to extension-related events (#26562)

This PR adds a new `ExtensionEvents` event bus that can be used to
listen for extension-related events throughout the app.

Today you need to have a handle to the `ExtensionStore` (which entails
depending on `extension_host`) in order to listen for extension events.

With this change subscribers only need to depend on `extension`, which
has a leaner dependency graph.

Release Notes:

- N/A
```

## Parents

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

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