Add OutlineItem::depth so that we can render a tree in the outline view

This commit is contained in:
Antonio Scandurra 2022-01-13 11:35:43 +01:00
parent 63a401ac5d
commit ef596c64f8
2 changed files with 11 additions and 1 deletions

View file

@ -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>,