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:
parent
d51cd15e4d
commit
d722067000
7 changed files with 107 additions and 33 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue