Use correct provider icons for extension repository links (#58108)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments (N/A)
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

I was unable to find an issue or PR which mentions this.

Extensions with non-GitHub repository links always use the GitHub icon,
which is inconsistent with the changes merged in #44738 and #57500. This
change makes `extension_ui.rs` use the Git hosting provider registry to
determine these icons. Below is a preview of the change:

<div align="center">
    <img
        width="450"
        alt="Preview"

src="https://github.com/user-attachments/assets/e35f0eed-de54-48f9-824d-8a5b9bfc596f"
    />
</div>

Release Notes:

- Improved extension repository links to show provider-specific icons.
This commit is contained in:
Albert Bogusz authored and GitHub committed 2026-08-04 15:14:33 +00:00
1 parent 20c1f82d13
commit 8f0161b3c2
9 files changed
+51 -20

No files matched your search

+1 -1
View File
@@ -1344,7 +1344,7 @@ impl Render for CommitViewToolbar {
}),
)
.children(remote_info.map(|(provider_name, url)| {
let icon = crate::get_provider_icon(provider_name.as_str());
let icon = ui::git_hosting_provider_icon(provider_name.as_str());
IconButton::new("view_on_provider", icon)
.icon_size(IconSize::Small)