From 3ba2bcfd68b8dfe232bf0cf482f816106e77e82a Mon Sep 17 00:00:00 2001 From: Dipendra Sharma Date: Sat, 29 Aug 2026 22:00:45 +0000 Subject: [PATCH] theme: Show bundled Docker icon for `.dockerignore` files (#63398) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Objective Fixes #63227 — `.dockerignore` files display a generic icon instead of the Docker icon. ## Solution Added `.dockerignore` to the list of filenames mapped to the Docker icon in `crates/theme/src/icon_theme.rs`. ## Testing - No automated tests added; the change is a static mapping. - Manually verified by opening a project with a `.dockerignore` file in Zed. ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments (none) - [x] The content adheres to Zed's UI standards (single icon mapping) - [ ] Tests cover the new/changed behavior (not required for static mapping) - [x] Performance impact has been considered and is acceptable ## Showcase > This section is optional. If this PR does not include a visual change or does not add a new user-facing feature, you can delete this section. - Help others understand the result of this PR by showcasing your awesome work! - If this PR includes a visual change, consider adding a screenshot, GIF, or video - A before/after comparison is very useful for changes to existing features! While a showcase should aim to be brief and digestible, you can use a toggleable section to save space on longer showcases:
Click to view showcase My super cool demos here
--- - `.dockerignore` now shows the Docker icon for the bundled icon theme. --- crates/theme/src/icon_theme.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/theme/src/icon_theme.rs b/crates/theme/src/icon_theme.rs index e03e45b354..ef315bb5f7 100644 --- a/crates/theme/src/icon_theme.rs +++ b/crates/theme/src/icon_theme.rs @@ -66,7 +66,7 @@ pub struct IconDefinition { } const FILE_STEMS_BY_ICON_KEY: &[(&str, &[&str])] = &[ - ("docker", &["Containerfile", "Dockerfile"]), + ("docker", &["Containerfile", "Dockerfile", ".dockerignore"]), ("ruby", &["Podfile"]), ("heroku", &["Procfile"]), ];