Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Rename the editor::ToggleGitBlame action to git::Blame (#26565)
Mikayla Makif116b44ae812
diff --git a/crates/collab/src/tests/editor_tests.rs b/crates/collab/src/tests/editor_tests.rsindex 30b8f7d8aae..3f9469588d7 100644--- a/crates/collab/src/tests/editor_tests.rs+++ b/crates/collab/src/tests/editor_tests.rs@@ -2038,7 +2038,7 @@ async fn test_git_blame_is_forwarded(cx_a: &mut TestAppContext, cx_b: &mut TestA// client_b now requests git blame for the open buffereditor_b.update_in(cx_b, |editor_b, window, cx| {assert!(editor_b.blame().is_none());- editor_b.toggle_git_blame(&editor::actions::ToggleGitBlame {}, window, cx);+ editor_b.toggle_git_blame(&git::Blame {}, window, cx);});cx_a.executor().run_until_parked();diff --git a/crates/editor/src/actions.rs b/crates/editor/src/actions.rsindex c386ba3dc14..8db29cdd084 100644--- a/crates/editor/src/actions.rs+++ b/crates/editor/src/actions.rs@@ -412,7 +412,6 @@ gpui::actions!(Tab,Backtab,ToggleAutoSignatureHelp,- ToggleGitBlame,ToggleGitBlameInline,ToggleIndentGuides,ToggleInlayHints,diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 03c8001dab9..0e767404cb1 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -14605,7 +14605,7 @@ impl Editor {pub fn toggle_git_blame(&mut self,- _: &ToggleGitBlame,+ _: &::git::Blame,window: &mut Window,cx: &mut Context<Self>,) {diff --git a/crates/git/src/git.rs b/crates/git/src/git.rsindex f78557702e5..d108e6719c5 100644--- a/crates/git/src/git.rs+++ b/crates/git/src/git.rs@@ -54,8 +54,10 @@ actions!(Init,]);+action_with_deprecated_aliases!(git, RestoreFile, ["editor::RevertFile"]);action_with_deprecated_aliases!(git, Restore, ["editor::RevertSelectedHunks"]);+action_with_deprecated_aliases!(git, Blame, ["editor::ToggleGitBlame"]);/// The length of a Git short SHA.pub const SHORT_SHA_LENGTH: usize = 7;diff --git a/crates/zed/src/zed/quick_action_bar.rs b/crates/zed/src/zed/quick_action_bar.rsindex 974a210dd46..178654fe05f 100644--- a/crates/zed/src/zed/quick_action_bar.rs+++ b/crates/zed/src/zed/quick_action_bar.rs@@ -383,14 +383,14 @@ impl Render for QuickActionBar {"Column Git Blame",show_git_blame_gutter,IconPosition::Start,- Some(editor::actions::ToggleGitBlame.boxed_clone()),+ Some(git::Blame.boxed_clone()),{let editor = editor.clone();move |window, cx| {editor.update(cx, |editor, cx| {editor.toggle_git_blame(- &editor::actions::ToggleGitBlame,+ &git::Blame,window,cx,)