Skip to content

fix: language mode mapping to add maps for paths which doesnt exists#2430

Merged
bajrangCoder merged 2 commits into
mainfrom
fix/lang-mode-map
Jul 1, 2026
Merged

fix: language mode mapping to add maps for paths which doesnt exists#2430
bajrangCoder merged 2 commits into
mainfrom
fix/lang-mode-map

Conversation

@bajrangCoder

Copy link
Copy Markdown
Member

No description provided.

@bajrangCoder bajrangCoder marked this pull request as ready for review July 1, 2026 07:47
@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates CodeMirror language detection for file paths. The main changes are:

  • Lower-priority plain Text fallback matching.
  • Later-registered modes winning equal-specificity matches.
  • Extra filename mappings for shell, properties, JSON, YAML, TOML, and protobuf files.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
src/cm/modelist.ts Updates mode sorting so Text stays behind more specific language modes.
src/cm/supportedModes.ts Adds broader filename mappings, including the properties config paths covered by this fix.

Reviews (2): Last reviewed commit: "fix" | Re-trigger Greptile

Comment thread src/cm/supportedModes.ts Outdated
@bajrangCoder

This comment was marked as outdated.

@bajrangCoder bajrangCoder merged commit 2f98c4f into main Jul 1, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Jul 1, 2026
@bajrangCoder bajrangCoder deleted the fix/lang-mode-map branch July 1, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant