Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add "Extensions" item to user menu (#8183)

Ngô Quốc Đạt95d5ea7edc78
diff --git a/Cargo.lock b/Cargo.lock
index 32a5cd541fa..104a15769d5 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 26237de4c6c..5ab841fbc96 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 33d769b1d99..c759ce30980 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())
})