From 3140025253815973f018ab7e53a2dc1cba41e3a0 Mon Sep 17 00:00:00 2001 From: Krzysztof Furman Date: Fri, 2 Jan 2026 11:48:24 +0000 Subject: [PATCH] Make `extension` key context case-insensitive (#45961) Closes #45960 Release Notes: - Made the `extension` key context case-insensitive. This e.g. enables the `markdown: Open Preview` action to also handle files where the extension is capitalised as MD (case-sensitive file system). --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 72ff50050fee7cc1e6c60c8e461c213b4487f298..764b40ddb79b32421430616a308ed44408cfde46 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);