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.

Make `extension` key context case-insensitive (#45961)

Krzysztof Furman314002525381
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 72ff50050fe..764b40ddb79 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -2680,7 +2680,7 @@ impl Editor {
file.full_path(cx)
.extension()?
.to_string_lossy()
- .into_owned(),
+ .to_lowercase(),
)
}) {
key_context.set("extension", extension);