diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index e72ca7ac92..5c1064400e 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -5337,7 +5337,6 @@ mod tests { #[gpui::test] async fn test_single_file_worktrees_diagnostics(cx: &mut gpui::TestAppContext) { cx.foreground().forbid_parking(); - language::init_test(cx); let fs = FakeFs::new(cx.background()); fs.insert_tree( diff --git a/crates/zed/src/menus.rs b/crates/zed/src/menus.rs index 33ac76e63c..48883d5c05 100644 --- a/crates/zed/src/menus.rs +++ b/crates/zed/src/menus.rs @@ -14,6 +14,12 @@ pub fn menus(state: &Arc) -> Vec> { action: Box::new(super::About), }, MenuItem::Separator, + MenuItem::Action { + name: "Install CLI", + keystroke: None, + action: Box::new(super::InstallCommandLineInterface), + }, + MenuItem::Separator, MenuItem::Action { name: "Quit", keystroke: Some("cmd-q"), diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 379b6172ab..4619979e7b 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -43,7 +43,7 @@ actions!( OpenSettings, IncreaseBufferFontSize, DecreaseBufferFontSize, - InstallCommandLineTool, + InstallCommandLineInterface, ] ); @@ -71,7 +71,7 @@ pub fn init(app_state: &Arc, cx: &mut gpui::MutableAppContext) { cx.refresh_windows(); }); }); - cx.add_global_action(move |_: &InstallCommandLineTool, cx| { + cx.add_global_action(move |_: &InstallCommandLineInterface, cx| { cx.spawn(|cx| async move { install_cli(&cx).await.context("error creating CLI symlink") }) .detach_and_log_err(cx); });