Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix miscellaneous typos (#58979)

Konstantinos Stbb59dc59fa90
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<Self>,
) -> 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::<ProjectPanelUndoRedoFeatureFlag>(), |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,