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.

project panel: Don't change label color even when file has errors (#20600)

Danilo Leal9d2fc691dee4
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 9047823b4cf..8c738d2fd3d 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -2452,14 +2452,8 @@ impl ProjectPanel {
.get(&(*worktree_id, entry.path.to_path_buf()))
.cloned();
- let filename_text_color = if entry.kind.is_file()
- && diagnostic_severity
- .map_or(false, |severity| severity == DiagnosticSeverity::ERROR)
- {
- Color::Error
- } else {
- entry_git_aware_label_color(status, entry.is_ignored, is_marked)
- };
+ let filename_text_color =
+ entry_git_aware_label_color(status, entry.is_ignored, is_marked);
let mut details = EntryDetails {
filename,