extensions_ui: Add ability to open the extensions view with a pre-selected filter (#27093)

This PR adds the ability to open the extensions view via the `zed:
extensions` action with a pre-selected filter.

The "Install Themes" and "Install Icon Themes" buttons in their
respective selectors take advantage of this to set the filter when
opening the view:


https://github.com/user-attachments/assets/2e345c0f-418a-47b6-811e-cabae6c616d1

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-19 13:26:46 -04:00 committed by GitHub
parent d51cd15e4d
commit d722067000
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 107 additions and 33 deletions

View file

@ -683,7 +683,10 @@ impl TitleBar {
"Icon Themes…",
zed_actions::icon_theme_selector::Toggle::default().boxed_clone(),
)
.action("Extensions", zed_actions::Extensions.boxed_clone())
.action(
"Extensions",
zed_actions::Extensions::default().boxed_clone(),
)
.separator()
.link(
"Book Onboarding",
@ -730,7 +733,10 @@ impl TitleBar {
"Icon Themes…",
zed_actions::icon_theme_selector::Toggle::default().boxed_clone(),
)
.action("Extensions", zed_actions::Extensions.boxed_clone())
.action(
"Extensions",
zed_actions::Extensions::default().boxed_clone(),
)
.separator()
.link(
"Book Onboarding",