rune-langium / visual-editor/src / RangeDiagnostic
Interface: RangeDiagnostic
Defined in: packages/visual-editor/src/hooks/useDiagnosticsForRange.ts:26
A diagnostic whose range has been converted from LSP line/character coordinates to character offsets in the source document. EditorPage performs this conversion via a memoized lineOffsets array before passing the resulting array into StructureView member rows.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
end | readonly | number | packages/visual-editor/src/hooks/useDiagnosticsForRange.ts:28 |
message | readonly | string | packages/visual-editor/src/hooks/useDiagnosticsForRange.ts:30 |
severity | readonly | 1 | 2 | 3 | 4 | packages/visual-editor/src/hooks/useDiagnosticsForRange.ts:29 |
start | readonly | number | packages/visual-editor/src/hooks/useDiagnosticsForRange.ts:27 |