Include highlighting runs in Outline

This commit is contained in:
Max Brunsfeld 2022-01-13 14:46:15 -08:00
parent 3e1c559b2d
commit 7913a1ea22
5 changed files with 36 additions and 10 deletions

View file

@ -1,5 +1,5 @@
use fuzzy::{StringMatch, StringMatchCandidate};
use gpui::executor::Background;
use gpui::{executor::Background, fonts::HighlightStyle};
use std::{ops::Range, sync::Arc};
#[derive(Debug)]
@ -14,6 +14,7 @@ pub struct OutlineItem<T> {
pub range: Range<T>,
pub text: String,
pub name_ranges: Box<[Range<u32>]>,
pub text_runs: Vec<(usize, Option<HighlightStyle>)>,
}
impl<T> Outline<T> {