Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

file_icons: Use separate icon key for JSON files (#24432)

Sanjeev Shresthac7cd5b019b04
diff --git a/assets/icons/file_icons/file_types.json b/assets/icons/file_icons/file_types.json
index 9580c8fd4ec..f36ef2737ff 100644
--- a/assets/icons/file_icons/file_types.json
+++ b/assets/icons/file_icons/file_types.json
@@ -101,7 +101,7 @@
"jpeg": "image",
"jpg": "image",
"js": "javascript",
- "json": "storage",
+ "json": "json",
"jsonc": "storage",
"jsx": "react",
"jxl": "image",
diff --git a/crates/theme/src/icon_theme.rs b/crates/theme/src/icon_theme.rs
index 1a99e42ed81..465391b26c8 100644
--- a/crates/theme/src/icon_theme.rs
+++ b/crates/theme/src/icon_theme.rs
@@ -88,6 +88,7 @@ const FILE_ICONS: &[(&str, &str)] = &[
("image", "icons/file_icons/image.svg"),
("java", "icons/file_icons/java.svg"),
("javascript", "icons/file_icons/javascript.svg"),
+ ("json", "icons/file_icons/code.svg"),
("julia", "icons/file_icons/julia.svg"),
("kotlin", "icons/file_icons/kotlin.svg"),
("lock", "icons/file_icons/lock.svg"),