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
This commit is contained in:
parent
d311a4b840
commit
55f4c8e51b
6 changed files with 164 additions and 56 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -2406,6 +2406,7 @@ name = "command_palette_hooks"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"collections",
|
||||
"derive_more",
|
||||
"gpui",
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue