Skip to main content

apply_and_highlight_refined

Function apply_and_highlight_refined 

Source
pub async fn apply_and_highlight_refined(
    handle: Arc<dyn Document>,
    text: String,
    spans: Vec<Vec<StyledSpan>>,
    refine: Vec<Vec<RefineSpan>>,
    pending_highlights: Option<PendingSyntheticHighlightsHandle>,
    buffer_id: BufferId,
)
Expand description

DR.3: as apply_and_highlight, publishing intra-line refinement with the spans — one update, so the two cannot drift when an inline expansion shifts lines.