mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 16:04:57 +03:00
Add typos configuration for zed and add a few more typo fixes
This commit is contained in:
parent
e6ca92ffa4
commit
e42a9ac2f1
@ -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>"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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
19
typos.toml
Normal 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
|
Loading…
Reference in New Issue
Block a user