pub fn lgx_finding_diagnostics(
findings: &[Finding],
line_index: &LineIndex,
) -> Vec<Diagnostic>Expand description
The LGX template checker’s findings, as the editor shows them: at the element they are about, with the checker’s own severity and message.
The code is lgx- and the finding’s kind in kebab case (lgx-image-without-alt), one per kind,
so a client can key on it the way it keys on a parse error’s code.