Skip to main content

entries_from_snapshot

Function entries_from_snapshot 

Source
pub fn entries_from_snapshot(
    snapshot: &[(Uri, Vec<Diagnostic>)],
) -> Vec<ErrorEntry>
Expand description

Convert one snapshot of the diagnostics layer into error entries.

URIs that do not resolve to a filesystem path are skipped, not failed: a server may publish against untitled: or a custom scheme, and one unmappable URI must not cost the user every other entry. Ordering follows the snapshot (URIs sorted, diagnostics by line then column), which gives a stable list across rebuilds — the property EP.2’s re-anchoring depends on.