title_bar: Remove dependency on command_palette (#21006)

This PR removes the `title_bar` crate's dependency on the
`command_palette`.

The `command_palette::Toggle` action now resides at
`zed_actions::command_palette::Toggle`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-11-21 13:37:34 -05:00 committed by GitHub
parent 268ac4c047
commit c16dfc1a39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 13 additions and 8 deletions

View file

@ -31,7 +31,6 @@ test-support = [
auto_update.workspace = true
call.workspace = true
client.workspace = true
command_palette.workspace = true
feedback.workspace = true
feature_flags.workspace = true
gpui.workspace = true

View file

@ -18,7 +18,10 @@ impl Render for ApplicationMenu {
.menu(move |cx| {
ContextMenu::build(cx, move |menu, cx| {
menu.header("Workspace")
.action("Open Command Palette", Box::new(command_palette::Toggle))
.action(
"Open Command Palette",
Box::new(zed_actions::command_palette::Toggle),
)
.when_some(cx.focused(), |menu, focused| menu.context(focused))
.custom_row(move |cx| {
h_flex()