diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs index feb0e186e37465a5f1e169eafd5e13f9481e5b2b..586a1d57915995b7af75cc825274a44733afc8c1 100644 --- a/crates/outline_panel/src/outline_panel.rs +++ b/crates/outline_panel/src/outline_panel.rs @@ -1622,11 +1622,7 @@ impl OutlinePanel { ExcerptOutlines::Invalidated(_) => ExcerptOutlines::NotFetched, ExcerptOutlines::NotFetched => ExcerptOutlines::NotFetched, }, - None => { - new_collapsed_entries - .insert(CollapsedEntry::Excerpt(buffer_id, excerpt_id)); - ExcerptOutlines::NotFetched - } + None => ExcerptOutlines::NotFetched, }; new_excerpts.entry(buffer_id).or_default().insert( excerpt_id, @@ -1674,11 +1670,6 @@ impl OutlinePanel { .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 {