diff --git a/Cargo.lock b/Cargo.lock index 1b54bdda02..51ca31bd9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5714,6 +5714,17 @@ dependencies = [ "memchr", ] +[[package]] +name = "quick_action_bar" +version = "0.1.0" +dependencies = [ + "editor", + "gpui", + "search", + "theme", + "workspace", +] + [[package]] name = "quote" version = "1.0.32" @@ -9922,6 +9933,7 @@ dependencies = [ "project", "project_panel", "project_symbols", + "quick_action_bar", "rand 0.8.5", "recent_projects", "regex", diff --git a/crates/quick_action_bar/Cargo.toml b/crates/quick_action_bar/Cargo.toml new file mode 100644 index 0000000000..6953ac0e02 --- /dev/null +++ b/crates/quick_action_bar/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "quick_action_bar" +version = "0.1.0" +edition = "2021" +publish = false + +[lib] +path = "src/quick_action_bar.rs" +doctest = false + +[dependencies] +editor = { path = "../editor" } +gpui = { path = "../gpui" } +search = { path = "../search" } +theme = { path = "../theme" } +workspace = { path = "../workspace" } + +[dev-dependencies] +editor = { path = "../editor", features = ["test-support"] } +gpui = { path = "../gpui", features = ["test-support"] } +theme = { path = "../theme", features = ["test-support"] } +workspace = { path = "../workspace", features = ["test-support"] } diff --git a/crates/zed/src/quick_action_bar.rs b/crates/quick_action_bar/src/quick_action_bar.rs similarity index 100% rename from crates/zed/src/quick_action_bar.rs rename to crates/quick_action_bar/src/quick_action_bar.rs diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml index d0aebb15e7..988648d4b1 100644 --- a/crates/zed/Cargo.toml +++ b/crates/zed/Cargo.toml @@ -54,6 +54,7 @@ plugin_runtime = { path = "../plugin_runtime",optional = true } project = { path = "../project" } project_panel = { path = "../project_panel" } project_symbols = { path = "../project_symbols" } +quick_action_bar = { path = "../quick_action_bar" } recent_projects = { path = "../recent_projects" } rpc = { path = "../rpc" } settings = { path = "../settings" } diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 47dff41729..8d851909b3 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -5,8 +5,6 @@ pub mod only_instance; #[cfg(any(test, feature = "test-support"))] pub mod test; -mod quick_action_bar; - use ai::AssistantPanel; use anyhow::Context; use assets::Assets;