mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
fmt
This commit is contained in:
parent
8c855680e7
commit
aacc4bb8b0
2 changed files with 8 additions and 7 deletions
|
@ -237,7 +237,8 @@ impl ProjectPanel {
|
||||||
|
|
||||||
cx.observe_global::<FileAssociations, _>(|_, cx| {
|
cx.observe_global::<FileAssociations, _>(|_, cx| {
|
||||||
cx.notify();
|
cx.notify();
|
||||||
}).detach();
|
})
|
||||||
|
.detach();
|
||||||
|
|
||||||
let view_id = cx.view_id();
|
let view_id = cx.view_id();
|
||||||
let mut this = Self {
|
let mut this = Self {
|
||||||
|
@ -1192,8 +1193,7 @@ impl ProjectPanel {
|
||||||
for entry in visible_worktree_entries[entry_range].iter() {
|
for entry in visible_worktree_entries[entry_range].iter() {
|
||||||
let status = git_status_setting.then(|| entry.git_status).flatten();
|
let status = git_status_setting.then(|| entry.git_status).flatten();
|
||||||
let is_expanded = expanded_entry_ids.binary_search(&entry.id).is_ok();
|
let is_expanded = expanded_entry_ids.binary_search(&entry.id).is_ok();
|
||||||
let icon = show_file_icons
|
let icon = show_file_icons.then(|| match entry.kind {
|
||||||
.then(|| match entry.kind {
|
|
||||||
EntryKind::File(_) => FileAssociations::get_icon(&entry.path, cx),
|
EntryKind::File(_) => FileAssociations::get_icon(&entry.path, cx),
|
||||||
_ => FileAssociations::get_folder_icon(is_expanded, cx),
|
_ => FileAssociations::get_folder_icon(is_expanded, cx),
|
||||||
});
|
});
|
||||||
|
|
|
@ -702,7 +702,8 @@ fn watch_file_types(fs: Arc<dyn Fs>, cx: &mut AppContext) {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).detach()
|
})
|
||||||
|
.detach()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
|
|
Loading…
Reference in a new issue