Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
chore: Fix build graph - again (#42999)
Piotr Osiewicz951132fc13dc
diff --git a/Cargo.lock b/Cargo.lockindex 09ee945d1c3..a39ff712e3a 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -8729,7 +8729,6 @@ dependencies = ["ui","ui_input","util",- "vim","workspace","zed_actions",]diff --git a/crates/keymap_editor/Cargo.toml b/crates/keymap_editor/Cargo.tomlindex b6086566c3b..33ba95ddd6d 100644--- a/crates/keymap_editor/Cargo.toml+++ b/crates/keymap_editor/Cargo.toml@@ -41,7 +41,6 @@ tree-sitter-rust.workspace = trueui_input.workspace = trueui.workspace = trueutil.workspace = true-vim.workspace = trueworkspace.workspace = truezed_actions.workspace = truediff --git a/crates/keymap_editor/src/keymap_editor.rs b/crates/keymap_editor/src/keymap_editor.rsindex 5e39e80b4bd..ce78a1d60ac 100644--- a/crates/keymap_editor/src/keymap_editor.rs+++ b/crates/keymap_editor/src/keymap_editor.rs@@ -1769,7 +1769,7 @@ impl Render for KeymapEditor {).action("Vim Bindings",- vim::OpenDefaultKeymap.boxed_clone(),+ zed_actions::vim::OpenDefaultKeymap.boxed_clone(),)}))})diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rsindex 410bea6b9c2..b21fd02a05c 100644--- a/crates/project_panel/src/project_panel.rs+++ b/crates/project_panel/src/project_panel.rs@@ -67,7 +67,7 @@ use workspace::{notifications::{DetachAndPromptErr, NotifyResultExt, NotifyTaskExt},};use worktree::CreatedEntry;-use zed_actions::workspace::OpenWithSystem;+use zed_actions::{project_panel::ToggleFocus, workspace::OpenWithSystem};const PROJECT_PANEL_KEY: &str = "ProjectPanel";const NEW_ENTRY_ID: ProjectEntryId = ProjectEntryId::MAX;@@ -306,8 +306,6 @@ actions!(OpenSplitVertical,/// Opens the selected file in a horizontal split.OpenSplitHorizontal,- /// Toggles focus on the project panel.- ToggleFocus,/// Toggles visibility of git-ignored files.ToggleHideGitIgnore,/// Toggles visibility of hidden files.diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.tomlindex 4cea29508f4..c935fd76dba 100644--- a/crates/vim/Cargo.toml+++ b/crates/vim/Cargo.toml@@ -35,7 +35,6 @@ multi_buffer.workspace = truenvim-rs = { git = "https://github.com/KillTheMule/nvim-rs", rev = "764dd270c642f77f10f3e19d05cc178a6cbe69f3", features = ["use_tokio"], optional = true }picker.workspace = trueproject.workspace = true-project_panel.workspace = trueregex.workspace = trueschemars.workspace = truesearch.workspace = truediff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rsindex a0efd1ee29a..ce359b6b1ee 100644--- a/crates/vim/src/vim.rs+++ b/crates/vim/src/vim.rs@@ -183,8 +183,6 @@ actions!(InnerObject,/// Maximizes the current pane.MaximizePane,- /// Opens the default keymap file.- OpenDefaultKeymap,/// Resets all pane sizes to default.ResetPaneSizes,/// Resizes the pane to the right.@@ -314,7 +312,7 @@ pub fn init(cx: &mut App) {workspace.register_action(|_, _: &ToggleProjectPanelFocus, window, cx| {if Vim::take_count(cx).is_none() {- window.dispatch_action(project_panel::ToggleFocus.boxed_clone(), cx);+ window.dispatch_action(zed_actions::project_panel::ToggleFocus.boxed_clone(), cx);}});@@ -343,7 +341,7 @@ pub fn init(cx: &mut App) {};});- workspace.register_action(|_, _: &OpenDefaultKeymap, _, cx| {+ workspace.register_action(|_, _: &zed_actions::vim::OpenDefaultKeymap, _, cx| {cx.emit(workspace::Event::OpenBundledFile {text: settings::vim_keymap(),title: "Default Vim Bindings",diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex 92b78704163..18f4a12b5d4 100644--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@ -1002,7 +1002,7 @@ fn register_actions(.register_action(open_project_debug_tasks_file).register_action(|workspace: &mut Workspace,- _: &project_panel::ToggleFocus,+ _: &zed_actions::project_panel::ToggleFocus,window: &mut Window,cx: &mut Context<Workspace>| {workspace.toggle_panel_focus::<ProjectPanel>(window, cx);diff --git a/crates/zed/src/zed/app_menus.rs b/crates/zed/src/zed/app_menus.rsindex 20a4f8be3b2..9f91b237101 100644--- a/crates/zed/src/zed/app_menus.rs+++ b/crates/zed/src/zed/app_menus.rs@@ -39,7 +39,7 @@ pub fn app_menus(cx: &mut App) -> Vec<Menu> {],}),MenuItem::separator(),- MenuItem::action("Project Panel", project_panel::ToggleFocus),+ MenuItem::action("Project Panel", zed_actions::project_panel::ToggleFocus),MenuItem::action("Outline Panel", outline_panel::ToggleFocus),MenuItem::action("Collab Panel", collab_panel::ToggleFocus),MenuItem::action("Terminal Panel", terminal_panel::ToggleFocus),diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rsindex b9fde1f3440..803fde3f878 100644--- a/crates/zed_actions/src/lib.rs+++ b/crates/zed_actions/src/lib.rs@@ -250,6 +250,17 @@ pub mod command_palette {);}+pub mod project_panel {+ use gpui::actions;++ actions!(+ project_panel,+ [+ /// Toggles focus on the project panel.+ ToggleFocus+ ]+ );+}pub mod feedback {use gpui::actions;@@ -532,6 +543,18 @@ actions!(]);+pub mod vim {+ use gpui::actions;++ actions!(+ vim,+ [+ /// Opens the default keymap file.+ OpenDefaultKeymap+ ]+ );+}+#[derive(Debug, Clone, PartialEq, Eq, Hash)]pub struct WslConnectionOptions {pub distro_name: String,