From 95d5ea7edc78d739d2803dd733c87bc6c8ae3ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Qu=E1=BB=91c=20=C4=90=E1=BA=A1t?= Date: Thu, 22 Feb 2024 19:01:20 +0700 Subject: [PATCH] Add "Extensions" item to user menu (#8183) Screenshot 2024-02-22 at 18 12 52 Release Note: - Add "Extensions" menu item to the UI --- Cargo.lock | 1 + crates/collab_ui/Cargo.toml | 1 + crates/collab_ui/src/collab_titlebar_item.rs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 32a5cd541f..104a15769d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2093,6 +2093,7 @@ dependencies = [ "collections", "db", "editor", + "extensions_ui", "feature_flags", "feedback", "futures 0.3.28", diff --git a/crates/collab_ui/Cargo.toml b/crates/collab_ui/Cargo.toml index 26237de4c6..5ab841fbc9 100644 --- a/crates/collab_ui/Cargo.toml +++ b/crates/collab_ui/Cargo.toml @@ -34,6 +34,7 @@ clock.workspace = true collections.workspace = true db.workspace = true editor.workspace = true +extensions_ui.workspace = true feature_flags.workspace = true feedback.workspace = true futures.workspace = true diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs index 33d769b1d9..c759ce3098 100644 --- a/crates/collab_ui/src/collab_titlebar_item.rs +++ b/crates/collab_ui/src/collab_titlebar_item.rs @@ -695,6 +695,7 @@ impl CollabTitlebarItem { .menu(|cx| { ContextMenu::build(cx, |menu, _| { menu.action("Settings", zed_actions::OpenSettings.boxed_clone()) + .action("Extensions", extensions_ui::Extensions.boxed_clone()) .action("Theme", theme_selector::Toggle.boxed_clone()) .separator() .action("Share Feedback", feedback::GiveFeedback.boxed_clone()) @@ -720,6 +721,7 @@ impl CollabTitlebarItem { ContextMenu::build(cx, |menu, _| { menu.action("Settings", zed_actions::OpenSettings.boxed_clone()) .action("Theme", theme_selector::Toggle.boxed_clone()) + .action("Extensions", extensions_ui::Extensions.boxed_clone()) .separator() .action("Share Feedback", feedback::GiveFeedback.boxed_clone()) })