mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
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:
@@ -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"]),
|
||||
|
||||
Reference in New Issue
Block a user