Add typos configuration for zed and add a few more typo fixes

This commit is contained in:
Mikayla 2024-01-17 15:22:37 -08:00
parent e6ca92ffa4
commit e42a9ac2f1
No known key found for this signature in database
3 changed files with 26 additions and 2 deletions

View File

@ -1735,6 +1735,11 @@ async fn test_following_into_excluded_file(
vec![18..17] vec![18..17]
); );
editor_for_excluded_a.update(cx_a, |editor, cx| {
editor.select_right(&Default::default(), cx);
});
executor.run_until_parked();
// Changes from B to the excluded file are replicated in A's editor // Changes from B to the excluded file are replicated in A's editor
editor_for_excluded_b.update(cx_b, |editor, cx| { editor_for_excluded_b.update(cx_b, |editor, cx| {
editor.handle_input("\nCo-Authored-By: B <b@b.b>", cx); editor.handle_input("\nCo-Authored-By: B <b@b.b>", cx);
@ -1743,7 +1748,7 @@ async fn test_following_into_excluded_file(
editor_for_excluded_a.update(cx_a, |editor, cx| { editor_for_excluded_a.update(cx_a, |editor, cx| {
assert_eq!( assert_eq!(
editor.text(cx), editor.text(cx),
"new commit messag\nCo-Authored-By: B <b@b.b>" "new commit message\nCo-Authored-By: B <b@b.b>"
); );
}); });
} }

View File

@ -85,7 +85,7 @@ mod tests {
assert_eq!( assert_eq!(
search_history.current(), search_history.current(),
None, None,
"No current selection should be set fo the default search history" "No current selection should be set for the default search history"
); );
search_history.add("rust".to_string()); search_history.add("rust".to_string());

19
typos.toml Normal file
View File

@ -0,0 +1,19 @@
[files]
ignore-files = true
extend-exclude = [
# Vim makes heavy use of partial typing tables
"crates/vim/*",
# glsl isn't recognized by this tool
"crates/zed/src/languages/glsl/*",
# File suffixes aren't typos
"assets/icons/file_icons/file_types.json",
# :/
"crates/collab/migrations/20231009181554_add_release_channel_to_rooms.sql",
# Editor and file finder rely on partial typing and custom in-string syntax
"crates/file_finder/src/file_finder.rs",
"crates/editor/src/editor_tests.rs",
]
[default]
extend-ignore-re = ["ba"]
check-filename = true