mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-03 14:01:30 +01:00
## Summary Bug fix for #51891, which made files in a form "suffix.suffix" highlight as the former. E.g. "mod.rs" would use a go icon, because mod is a file suffix for gomod. Hence, the whole logic for replacement is now kicked off only when there's no better suffix match. No rel-note, as #51891 has not landed on Preview yet. ## Testing Manually test your changes; report results, mention platforms if relevant. How can reviewers test this easily? Include setup and steps. ## Self-review - [ ] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Release Notes: - N/A --------- Co-authored-by: Finn Evers <finn@zed.dev>