Add excerpts into outline panel (#13034)
Follow-up of https://github.com/zed-industries/zed/pull/12637 Adds excerpt items into the outline panel: now all outline items are initially hidden under excerpt items that could be toggled open/closed similar to directories.  On active editor's selection change, a corresponding outline will be revealed still, expanding the corresponding excerpt  Release Notes: - N/A
This commit is contained in:
parent
1248788780
commit
eb7a09b459
8 changed files with 1106 additions and 894 deletions
|
@ -110,7 +110,7 @@ impl SyntaxTreeView {
|
|||
|
||||
let subscription = cx.subscribe(&editor, |this, _, event, cx| {
|
||||
let did_reparse = match event {
|
||||
editor::EditorEvent::Reparsed => true,
|
||||
editor::EditorEvent::Reparsed(_) => true,
|
||||
editor::EditorEvent::SelectionsChanged { .. } => false,
|
||||
_ => return,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue