From 426f94b310f73e34cdb98e34f8a58bad004f04bb Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Mon, 16 Dec 2024 13:39:40 -0500 Subject: [PATCH] git_ui: Update todos (#22100) `todo!()` -> `TODO` Release Notes: - N/A --- crates/git_ui/src/git_panel.rs | 18 +++++++++--------- crates/git_ui/src/git_ui.rs | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index ea7585d97854028616bf3cb22854182a4eb3d230..d64dd5ba502c96aa6dda7c0e97c106029a235a85 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -188,12 +188,12 @@ impl GitPanel { } fn should_show_scrollbar(_cx: &AppContext) -> bool { - // todo!(): plug into settings + // TODO: plug into settings true } fn should_autohide_scrollbar(_cx: &AppContext) -> bool { - // todo!(): plug into settings + // TODO: plug into settings true } @@ -255,34 +255,34 @@ impl GitPanel { impl GitPanel { fn stage_all(&mut self, _: &StageAll, _cx: &mut ViewContext) { - // todo!(): Implement stage all + // TODO: Implement stage all println!("Stage all triggered"); } fn unstage_all(&mut self, _: &UnstageAll, _cx: &mut ViewContext) { - // todo!(): Implement unstage all + // TODO: Implement unstage all println!("Unstage all triggered"); } fn discard_all(&mut self, _: &DiscardAll, _cx: &mut ViewContext) { - // todo!(): Implement discard all + // TODO: Implement discard all println!("Discard all triggered"); } /// Commit all staged changes fn commit_staged_changes(&mut self, _: &CommitStagedChanges, _cx: &mut ViewContext) { - // todo!(): Implement commit all staged + // TODO: Implement commit all staged println!("Commit staged changes triggered"); } /// Commit all changes, regardless of whether they are staged or not fn commit_all_changes(&mut self, _: &CommitAllChanges, _cx: &mut ViewContext) { - // todo!(): Implement commit all changes + // TODO: Implement commit all changes println!("Commit all changes triggered"); } fn all_staged(&self) -> bool { - // todo!(): Implement all_staged + // TODO: Implement all_staged true } @@ -378,7 +378,7 @@ impl GitPanel { } } - // todo!(): Update expanded directory state + // TODO: Update expanded directory state fn update_visible_entries( &mut self, new_selected_entry: Option<(WorktreeId, ProjectEntryId)>, diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rs index 19aa554073918fc5c435ea39e9e57940cd6a6f38..5aa9a361fa11db0dbaec283ae9f1769ae91e934d 100644 --- a/crates/git_ui/src/git_ui.rs +++ b/crates/git_ui/src/git_ui.rs @@ -41,7 +41,7 @@ const REMOVED_COLOR: Hsla = Hsla { a: 1.0, }; -// todo!(): Add updated status colors to theme +// TODO: Add updated status colors to theme pub fn git_status_icon(status: GitFileStatus) -> impl IntoElement { match status { GitFileStatus::Added => Icon::new(IconName::SquarePlus).color(Color::Custom(ADDED_COLOR)),