enhancement: add missing common file extensions to language detection

Open Beginner friendly
#944 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, fsharp, json, markdown, rust, xml
Domain
cli, tooling

Research direction

Start by locating the language definitions used by edit's file-type detection, then find the XML definition and its duplicate .xml entry. Add the listed extensions without changing syntax highlighting behavior, remove the duplicate, and verify that edit recognizes each extension.

Written by the indexing model from the issue text.

Description

Some common file extensions are currently missing from the language definitions.

The following extensions could be added:

  • C++ -> .hh, .hxx, .ixx
  • F# -> .fsscript
  • JSON -> .jsonl, .ndjson
  • Markdown -> .markdown
  • XML -> .xhtml

There is also a duplicate .xml entry in the XML language definition that can be removed.

These changes would allow edit to recognize more commonly used file types without changing the existing syntax highlighting behavior.

Dominant language
Rust
Stars
14.6k
Forks
735
Avg merge
8h 40m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/edit

All issues in microsoft/edit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.