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 <finn@zed.dev>
This commit is contained in:
Bennet Bo Fenner
2026-11-14 19:33:53 +00:00
committed by GitHub
parent 56a157e5b0
commit 15d136bf8e
@@ -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"]),