From bb59dc59fa90ee950ab2a92beb8084a04eb12b8f Mon Sep 17 00:00:00 2001 From: Konstantinos St Date: Tue, 9 Jun 2026 19:46:22 -0300 Subject: [PATCH] Fix miscellaneous typos (#58979) Some typos I found while reading the code Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A --- crates/editor/src/editor_tests.rs | 4 ++-- crates/editor/src/hover_links.rs | 2 +- crates/git_ui/src/git_panel.rs | 2 +- crates/gpui_windows/src/events.rs | 2 +- crates/project_panel/src/project_panel.rs | 2 +- crates/task/src/task.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rs index 48a074b25cc..b476b9bcdab 100644 --- a/crates/editor/src/editor_tests.rs +++ b/crates/editor/src/editor_tests.rs @@ -8039,7 +8039,7 @@ async fn test_rewrap(cx: &mut TestAppContext) { &mut cx, ); - // Test that change in comment prefix (e.g., `//` to `///`) trigger seperate rewraps + // Test that change in comment prefix (e.g., `//` to `///`) trigger separate rewraps assert_rewrap( indoc! {" «// A regular long long comment to be wrapped. @@ -8055,7 +8055,7 @@ async fn test_rewrap(cx: &mut TestAppContext) { &mut cx, ); - // Test that change in indentation level trigger seperate rewraps + // Test that change in indentation level trigger separate rewraps assert_rewrap( indoc! {" fn foo() { diff --git a/crates/editor/src/hover_links.rs b/crates/editor/src/hover_links.rs index 127f167eddc..9e943d37daf 100644 --- a/crates/editor/src/hover_links.rs +++ b/crates/editor/src/hover_links.rs @@ -1373,7 +1373,7 @@ mod tests { cx.run_until_parked(); // Jiggle within the same character should not produce a new request, - // even though the previous reponse was empty and produced no link to + // even though the previous response was empty and produced no link to // highlight. cx.simulate_mouse_move(second_point, None, Modifiers::secondary_key()); cx.run_until_parked(); diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 062385d6dc6..b2f9f9cf1b3 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -6311,7 +6311,7 @@ impl GitPanel { window: &Window, cx: &Context, ) -> AnyElement { - // TODO: Have not yet plugin the self.marked_entries. Not sure when and why we need that + // TODO: Have not yet plugged in self.marked_entries. Not sure when and why we need that let selected = self.selected_entry == Some(ix); let label_color = Color::Muted; diff --git a/crates/gpui_windows/src/events.rs b/crates/gpui_windows/src/events.rs index b04b819a02b..51205946ef0 100644 --- a/crates/gpui_windows/src/events.rs +++ b/crates/gpui_windows/src/events.rs @@ -938,7 +938,7 @@ impl WindowsWindowInner { unsafe { GetWindowRect(handle, &mut rect) }.log_err(); // right and bottom bounds of RECT are exclusive, thus `-1` let right = rect.right - rect.left - 1; - // the bounds include the padding frames, so accomodate for both of them + // the bounds include the padding frames, so accommodate for both of them if right - 2 * frame_x <= cursor_point.x { HTTOPRIGHT } else { diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 7d531c989b4..40e287ee7a1 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -1155,7 +1155,7 @@ impl ProjectPanel { .action("Cut", Box::new(Cut)) .action("Copy", Box::new(Copy)) .action("Duplicate", Box::new(Duplicate)) - // TODO: Paste should always be visible, cbut disabled when clipboard is empty + // TODO: Paste should always be visible, but disabled when clipboard is empty .action_disabled_when(!has_pasteable_content, "Paste", Box::new(Paste)) .when(cx.has_flag::(), |menu| { menu.action_disabled_when( diff --git a/crates/task/src/task.rs b/crates/task/src/task.rs index 43eb2da428d..37dc3d7556b 100644 --- a/crates/task/src/task.rs +++ b/crates/task/src/task.rs @@ -69,7 +69,7 @@ pub struct SpawnInTerminal { pub hide: HideStrategy, /// Which shell to use when spawning the task. pub shell: Shell, - /// Whether to show the task summary line in the task output (sucess/failure). + /// Whether to show the task summary line in the task output (success/failure). pub show_summary: bool, /// Whether to show the command line in the task output. pub show_command: bool,