Skip to content

Commit

Permalink
Update typos-cli to v1.24.6. Add scripts/check-spelling. Fix typos (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
notpeter committed Sep 18, 2024
1 parent d3d1a8f commit 58a12ef
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/collab/src/db/ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub enum ChannelRole {
/// Admin can read/write and change permissions.
#[sea_orm(string_value = "admin")]
Admin,
/// Member can read/write, but not change pemissions.
/// Member can read/write, but not change permissions.
#[sea_orm(string_value = "member")]
#[default]
Member,
Expand Down
2 changes: 1 addition & 1 deletion crates/editor/src/inlay_hint_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ impl InlayHintCache {
/// If needed, queries LSP for new inlay hints, using the invalidation strategy given.
/// To reduce inlay hint jumping, attempts to query a visible range of the editor(s) first,
/// followed by the delayed queries of the same range above and below the visible one.
/// This way, concequent refresh invocations are less likely to trigger LSP queries for the invisible ranges.
/// This way, subsequent refresh invocations are less likely to trigger LSP queries for the invisible ranges.
pub(super) fn spawn_hint_refresh(
&mut self,
reason_description: &'static str,
Expand Down
2 changes: 1 addition & 1 deletion crates/language/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3022,7 +3022,7 @@ impl BufferSnapshot {
let mut start = text.len();
let end = start + buffer_range.len();

// When multiple names are captured, then the matcheable text
// When multiple names are captured, then the matchable text
// includes the whitespace in between the names.
if !name_ranges.is_empty() {
start -= 1;
Expand Down
2 changes: 1 addition & 1 deletion crates/language/src/buffer_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ async fn test_normalize_whitespace(cx: &mut gpui::TestAppContext) {
let buffer = cx.new_model(|cx| Buffer::local(text, cx));

// Spawn a task to format the buffer's whitespace.
// Pause so that the foratting task starts running.
// Pause so that the formatting task starts running.
let format = buffer.update(cx, |buffer, cx| buffer.remove_trailing_whitespace(cx));
smol::future::yield_now().await;

Expand Down
2 changes: 1 addition & 1 deletion crates/picker/src/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ impl<D: PickerDelegate> Picker<D> {
.on_mouse_up(
MouseButton::Right,
cx.listener(move |this, event: &MouseUpEvent, cx| {
// We specficially want to use the platform key here, as
// We specifically want to use the platform key here, as
// ctrl will already be held down for the tab switcher.
this.handle_click(ix, event.modifiers.platform, cx)
}),
Expand Down
2 changes: 1 addition & 1 deletion crates/terminal/src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ fn task_summary(task: &TaskState, error_code: Option<i32>) -> (bool, String, Str
/// the cursor's `point` is not updated to the new line and column values
///
/// * ??? there could be more consequences, and any further "proper" streaming from the PTY might bug and/or panic.
/// Still, concequent `append_text_to_term` invocations are possible and display the contents correctly.
/// Still, subsequent `append_text_to_term` invocations are possible and display the contents correctly.
///
/// Despite the quirks, this is the simplest approach to appending text to the terminal: its alternative, `grid_mut` manipulations,
/// do not properly set the scrolling state and display odd text after appending; also those manipulations are more tedious and error-prone.
Expand Down
2 changes: 1 addition & 1 deletion crates/ui/src/components/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl RenderOnce for AnyIcon {
/// The decoration for an icon.
///
/// For example, this can show an indicator, an "x",
/// or a diagonal strkethrough to indicate something is disabled.
/// or a diagonal strikethrough to indicate something is disabled.
#[derive(Debug, PartialEq, Copy, Clone, EnumIter)]
pub enum IconDecoration {
Strikethrough,
Expand Down
2 changes: 1 addition & 1 deletion crates/zed/src/reliability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub fn monitor_main_thread_hangs(
let background_executor = cx.background_executor();
let telemetry_settings = *client::TelemetrySettings::get_global(cx);

// Initialize SIGUSR2 handler to send a backrace to a channel.
// Initialize SIGUSR2 handler to send a backtrace to a channel.
let (backtrace_tx, backtrace_rx) = mpsc::channel();
static BACKTRACE: Mutex<Vec<backtrace::Frame>> = Mutex::new(Vec::new());
static BACKTRACE_SENDER: OnceLock<mpsc::Sender<()>> = OnceLock::new();
Expand Down
11 changes: 11 additions & 0 deletions script/check-spelling
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

TYPOS_CLI_VERSION=1.24.6

if ! cargo install --list | grep "typos-cli v$TYPOS_CLI_VERSION" > /dev/null; then
echo "Installing typos-cli@$TYPOS_CLI_VERSION..."
cargo install "typos-cli@$TYPOS_CLI_VERSION"
else
echo "typos-cli@$TYPOS_CLI_VERSION is already installed."
fi
typos

0 comments on commit 58a12ef

Please sign in to comment.