Add OutlineItem::depth so that we can render a tree in the outline view
This commit is contained in:
parent
63a401ac5d
commit
ef596c64f8
2 changed files with 11 additions and 1 deletions
|
@ -6,6 +6,7 @@ pub struct Outline(pub Vec<OutlineItem>);
|
|||
#[derive(Debug)]
|
||||
pub struct OutlineItem {
|
||||
pub id: usize,
|
||||
pub depth: usize,
|
||||
pub range: Range<usize>,
|
||||
pub text: String,
|
||||
pub name_range_in_text: Range<usize>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue