From 15d136bf8e72ae43b284183ec46940c009460f5c Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Sat, 14 Nov 2026 19:33:53 +0000 Subject: [PATCH] Fix R extension recommendations for unsupported file types (#66928) Remove `.qmd`, `.Rmd`, and `.rmd` from the R extension recommendation table, retaining `.r` and `.R`. ## Root cause #63211 expanded the recommendation table using the language configurations in extension source repositories. For R, those sources already included a separate RMarkdown language with `path_suffixes = ["Rmd", "rmd", "qmd"]`, introduced in ocsmit/zed-r#42 and included in version 0.2.6. However, the extension registry still publishes R 0.2.5, which only registers `.r` and `.R`. The recommendation therefore offers an extension that cannot provide a language for the file that triggered it. The source configuration was ahead of the published package; the mappings were not valid for the version users could install. The registry update in https://github.com/zed-industries/extensions/pull/7288 remains blocked on extension CI. Remove these recommendations for now rather than suggest unavailable support. They can be restored once a working release with RMarkdown support is published. Release Notes: - Fixed incorrect R extension installation suggestions for Quarto and R Markdown files. --------- Co-authored-by: Finn Evers --- crates/extension_suggest/src/extension_suggest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/extension_suggest/src/extension_suggest.rs b/crates/extension_suggest/src/extension_suggest.rs index c377a3749ea..322d247b389 100644 --- a/crates/extension_suggest/src/extension_suggest.rs +++ b/crates/extension_suggest/src/extension_suggest.rs @@ -160,7 +160,7 @@ const SUGGESTIONS_BY_EXTENSION_ID: &[(&str, &[&str])] = &[ "python-requirements", &["constraints.txt", "requirements.txt"], ), - ("r", &["R", "Rmd", "qmd", "r", "rmd"]), + ("r", &["R", "r"]), ("racket", &["rkt"]), ("rescript", &["res", "resi"]), ("rst", &["rst"]),