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.

Sort language names case agnostically

Joseph Lyons3c7237e60006
diff --git a/crates/language/src/language.rs b/crates/language/src/language.rs
index 30fc5db5632..e1e60a1ecfe 100644
--- a/crates/language/src/language.rs
+++ b/crates/language/src/language.rs
@@ -537,7 +537,7 @@ impl LanguageRegistry {
.map(|l| l.config.name.to_string()),
)
.collect::<Vec<_>>();
- result.sort_unstable();
+ result.sort_unstable_by_key(|language_name| language_name.to_lowercase());
result
}