Expand description
Convert Gruel JsonDiagnostic values to LSP Diagnostic values
(ADR-0091).
Functions§
- group_
by_ file - Group LSP diagnostics by file path.
- suggestions_
from_ diagnostic_ data - Deserialize the
JsonSuggestion[]from a Diagnostic.data field (Phase 2 carries them so codeAction can read them back). - to_
lsp_ diagnostic - Convert one Gruel
JsonDiagnosticto an LSPDiagnosticand the file path it belongs to. ReturnsNoneif the diagnostic has no primary span.
Type Aliases§
- Diagnostics
ByFile - Group of diagnostics keyed by file path string.