# Encapsulate \`CommandPaletteFilter\` and \`CommandPaletteInterceptor\` \(\#9402\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 55f4c8e51b6937062d699c24921b689e627734c9

Requested commit: 55f4c8e51b6937062d699c24921b689e627734c9

Commit: 55f4c8e51b6937062d699c24921b689e627734c9

Tree: 9207096a7334da7946381c954c3791f4d31e0452

Author: Marshall Bowers

Committer: GitHub

## Message

```
Encapsulate `CommandPaletteFilter` and `CommandPaletteInterceptor` (#9402)

This PR refactors the `CommandPaletteFilter` and
`CommandPaletteInterceptor` to better encapsulate their internals.

Previously these globals and their fields were publicly accessible,
which meant that there was a lot of reaching in and making
modifications.

These changes should make it easier to add additional consumers of these
hooks (right now they're primarily used by Vim mode).

Release Notes:

- N/A
```

## Parents

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

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