From b16e2ee46dbfd705e69ed4099788bf60f4e60bec Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 13 Jul 2024 04:08:21 +0300 Subject: [PATCH] Do not fold excerpts by default in the outline panel (#14378) Release Notes: - N/A --- crates/outline_panel/src/outline_panel.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs index 6d87cbd706d876e58bc86a0a93db17ea5df1b02f..4b2988b7d181f1a45377417f03c9d947c68de8d6 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 {