mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
chore: Fix build graph - again (#42999)
11.3s -> 10.0s for silly stuff like extracting actions from crates. project panel still depends on git_ui though.. Release Notes: - N/A
This commit is contained in:
parent
bf0dd4057c
commit
951132fc13
9 changed files with 29 additions and 13 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -8729,7 +8729,6 @@ dependencies = [
|
|||
"ui",
|
||||
"ui_input",
|
||||
"util",
|
||||
"vim",
|
||||
"workspace",
|
||||
"zed_actions",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ tree-sitter-rust.workspace = true
|
|||
ui_input.workspace = true
|
||||
ui.workspace = true
|
||||
util.workspace = true
|
||||
vim.workspace = true
|
||||
workspace.workspace = true
|
||||
zed_actions.workspace = true
|
||||
|
||||
|
|
|
|||
|
|
@ -1769,7 +1769,7 @@ impl Render for KeymapEditor {
|
|||
)
|
||||
.action(
|
||||
"Vim Bindings",
|
||||
vim::OpenDefaultKeymap.boxed_clone(),
|
||||
zed_actions::vim::OpenDefaultKeymap.boxed_clone(),
|
||||
)
|
||||
}))
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ multi_buffer.workspace = true
|
|||
nvim-rs = { git = "https://github.com/KillTheMule/nvim-rs", rev = "764dd270c642f77f10f3e19d05cc178a6cbe69f3", features = ["use_tokio"], optional = true }
|
||||
picker.workspace = true
|
||||
project.workspace = true
|
||||
project_panel.workspace = true
|
||||
regex.workspace = true
|
||||
schemars.workspace = true
|
||||
search.workspace = true
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue