WIP: Add status bubbling to project panel
This commit is contained in:
parent
49c5a3fa86
commit
9a13a2ba2c
3 changed files with 54 additions and 26 deletions
|
@ -1109,8 +1109,16 @@ impl ProjectPanel {
|
|||
.unwrap_or(&[]);
|
||||
|
||||
let entry_range = range.start.saturating_sub(ix)..end_ix - ix;
|
||||
for entry in visible_worktree_entries[entry_range].iter() {
|
||||
let status = git_status_setting.then(|| entry.git_status).flatten();
|
||||
let statuses = worktree.read(cx).statuses_for_paths(
|
||||
visible_worktree_entries[entry_range.clone()]
|
||||
.iter()
|
||||
.map(|entry| entry.path.as_ref()),
|
||||
);
|
||||
for (entry, status) in visible_worktree_entries[entry_range]
|
||||
.iter()
|
||||
.zip(statuses.into_iter())
|
||||
{
|
||||
let status = git_status_setting.then(|| status).flatten();
|
||||
|
||||
let mut details = EntryDetails {
|
||||
filename: entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue