Do not fold excerpts by default in the outline panel (#14378)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-07-13 04:08:21 +03:00 committed by GitHub
parent 9ce989a704
commit 89fbd6528f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1622,11 +1622,7 @@ impl OutlinePanel {
ExcerptOutlines::Invalidated(_) => ExcerptOutlines::NotFetched, ExcerptOutlines::Invalidated(_) => ExcerptOutlines::NotFetched,
ExcerptOutlines::NotFetched => ExcerptOutlines::NotFetched, ExcerptOutlines::NotFetched => ExcerptOutlines::NotFetched,
}, },
None => { None => ExcerptOutlines::NotFetched,
new_collapsed_entries
.insert(CollapsedEntry::Excerpt(buffer_id, excerpt_id));
ExcerptOutlines::NotFetched
}
}; };
new_excerpts.entry(buffer_id).or_default().insert( new_excerpts.entry(buffer_id).or_default().insert(
excerpt_id, excerpt_id,
@ -1674,11 +1670,6 @@ impl OutlinePanel {
.insert(CollapsedEntry::ExternalFile(buffer_id)); .insert(CollapsedEntry::ExternalFile(buffer_id));
} }
} }
for excerpt_id in &excerpts {
new_collapsed_entries
.insert(CollapsedEntry::Excerpt(buffer_id, *excerpt_id));
}
} }
if let Some(worktree) = worktree { if let Some(worktree) = worktree {