Files
zed/crates/file_icons
Piotr OsiewiczandFinn Evers 15591019b6 file_icons: Match on stems only when there's no better candidate from suffixes (#65830)
## 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>
2026-10-19 14:22:10 +00:00
..