Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Ensure correct tab icon is shown for files outside of the current project (#25933)
Finn Evers20fc753f2b2f
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rsindex d3c5089af2e..bbb8943145b 100644--- a/crates/editor/src/items.rs+++ b/crates/editor/src/items.rs@@ -618,11 +618,8 @@ impl Item for Editor {ItemSettings::get_global(cx).file_icons.then(|| {- self.buffer- .read(cx)- .as_singleton()- .and_then(|buffer| buffer.read(cx).project_path(cx))- .and_then(|path| FileIcons::get_icon(path.path.as_ref(), cx))+ path_for_buffer(&self.buffer, 0, true, cx)+ .and_then(|path| FileIcons::get_icon(path.as_ref(), cx))}).flatten().map(Icon::from_path)