Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove dependency from gpui from editor2
Antonio Scandurra800c2685ea43
diff --git a/Cargo.lock b/Cargo.lockindex 46d481c2eac..135e8a7ca94 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1866,7 +1866,6 @@ dependencies = ["async-tar","clock","collections",- "context_menu","fs","futures 0.3.28","gpui2",@@ -2631,7 +2630,6 @@ dependencies = ["client2","clock","collections",- "context_menu","convert_case 0.6.0","copilot2","ctor",@@ -2654,7 +2652,7 @@ dependencies = ["postage","project2","rand 0.8.5",- "rich_text",+ "rich_text2","rpc2","schemars","serde",@@ -3578,7 +3576,6 @@ dependencies = ["foreign-types","futures 0.3.28","gpui2_macros",- "gpui_macros","image","itertools 0.10.5","lazy_static",diff --git a/crates/copilot2/Cargo.toml b/crates/copilot2/Cargo.tomlindex 20211946071..2ce432d9fc2 100644--- a/crates/copilot2/Cargo.toml+++ b/crates/copilot2/Cargo.toml@@ -20,7 +20,7 @@ test-support = [[dependencies]collections = { path = "../collections" }-context_menu = { path = "../context_menu" }+# context_menu = { path = "../context_menu" }gpui = { package = "gpui2", path = "../gpui2" }language = { package = "language2", path = "../language2" }settings = { package = "settings2", path = "../settings2" }diff --git a/crates/editor2/Cargo.toml b/crates/editor2/Cargo.tomlindex f0002787f3d..e356a351553 100644--- a/crates/editor2/Cargo.toml+++ b/crates/editor2/Cargo.toml@@ -29,7 +29,7 @@ copilot = { package="copilot2", path = "../copilot2" }db = { package="db2", path = "../db2" }drag_and_drop = { path = "../drag_and_drop" }collections = { path = "../collections" }-context_menu = { path = "../context_menu" }+# context_menu = { path = "../context_menu" }fuzzy = { package = "fuzzy2", path = "../fuzzy2" }git = { path = "../git" }gpui = { package = "gpui2", path = "../gpui2" }@@ -38,7 +38,7 @@ lsp = { package = "lsp2", path = "../lsp2" }multi_buffer = { package = "multi_buffer2", path = "../multi_buffer2" }project = { package = "project2", path = "../project2" }rpc = { package = "rpc2", path = "../rpc2" }-rich_text = { path = "../rich_text" }+rich_text = { package = "rich_text2", path = "../rich_text2" }settings = { package="settings2", path = "../settings2" }snippet = { path = "../snippet" }sum_tree = { path = "../sum_tree" }@@ -46,7 +46,7 @@ text = { package="text2", path = "../text2" }theme = { package="theme2", path = "../theme2" }util = { path = "../util" }sqlez = { path = "../sqlez" }-workspace = { package="workspace2", path = "../workspace2" }+workspace = { package = "workspace2", path = "../workspace2" }aho-corasick = "1.1"anyhow.workspace = truediff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rsindex e2d923c3395..16997fcacca 100644--- a/crates/editor2/src/editor.rs+++ b/crates/editor2/src/editor.rs@@ -622,7 +622,7 @@ pub struct Editor {// inlay_background_highlights: TreeMap<Option<TypeId>, InlayBackgroundHighlight>,nav_history: Option<ItemNavHistory>,context_menu: RwLock<Option<ContextMenu>>,- mouse_context_menu: View<context_menu::ContextMenu>,+ // mouse_context_menu: View<context_menu::ContextMenu>,completion_tasks: Vec<(CompletionId, Task<Option<()>>)>,next_completion_id: CompletionId,available_code_actions: Option<(Model<Buffer>, Arc<[CodeAction]>)>,diff --git a/crates/editor2/src/mouse_context_menu.rs b/crates/editor2/src/mouse_context_menu.rsindex 97787c3d39c..b70a826bf8c 100644--- a/crates/editor2/src/mouse_context_menu.rs+++ b/crates/editor2/src/mouse_context_menu.rs@@ -1,5 +1,4 @@use crate::{DisplayPoint, Editor, EditorMode, SelectMode};-use context_menu::ContextMenuItem;use gpui::{Pixels, Point, ViewContext};pub fn deploy_context_menu(diff --git a/crates/gpui2/Cargo.toml b/crates/gpui2/Cargo.tomlindex fa072dadc3c..df461af7b87 100644--- a/crates/gpui2/Cargo.toml+++ b/crates/gpui2/Cargo.toml@@ -15,7 +15,6 @@ doctest = false[dependencies]collections = { path = "../collections" }-gpui_macros = { path = "../gpui_macros" }gpui2_macros = { path = "../gpui2_macros" }util = { path = "../util" }sum_tree = { path = "../sum_tree" }