Definitions and functionality for emitting diagnostic information such as errors, warnings and #command outputs from the LSP server.
- error: Lean.Lsp.DiagnosticSeverity
- warning: Lean.Lsp.DiagnosticSeverity
- information: Lean.Lsp.DiagnosticSeverity
- hint: Lean.Lsp.DiagnosticSeverity
Equations
- Lean.Lsp.instBEqDiagnosticSeverity = { beq := [anonymous] }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
- int: Int → Lean.Lsp.DiagnosticCode
- string: String → Lean.Lsp.DiagnosticCode
Equations
- Lean.Lsp.instInhabitedDiagnosticCode = { default := Lean.Lsp.DiagnosticCode.int default }
Equations
- Lean.Lsp.instBEqDiagnosticCode = { beq := [anonymous] }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
- unnecessary: Lean.Lsp.DiagnosticTag
- deprecated: Lean.Lsp.DiagnosticTag
Equations
Equations
- Lean.Lsp.instBEqDiagnosticTag = { beq := [anonymous] }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
- location : Lean.Lsp.Location
- message : String
Equations
- Lean.Lsp.instInhabitedDiagnosticRelatedInformation = { default := { location := default, message := default } }
- range : Lean.Lsp.Range
Extension: preserve semantic range of errors when truncating them for display purposes.
fullRange : Lean.Lsp.Range- severity? : Option Lean.Lsp.DiagnosticSeverity
- code? : Option Lean.Lsp.DiagnosticCode
Parametrised by the type of message data. LSP diagnostics use
String
, whereas in Lean's interactive diagnostics we use the type of widget-enriched text. SeeLean.Widget.InteractiveDiagnostic
.message : α
instance
Lean.Lsp.instInhabitedDiagnosticWith:
{a : Type} → [inst : Inhabited a] → Inhabited (Lean.Lsp.DiagnosticWith a)
Equations
- One or more equations did not get rendered due to their size.
instance
Lean.Lsp.instBEqDiagnosticWith:
{α : Type} → [inst : BEq α] → BEq (Lean.Lsp.DiagnosticWith α)
Equations
- Lean.Lsp.instBEqDiagnosticWith = { beq := [anonymous] }
instance
Lean.Lsp.instToJsonDiagnosticWith:
{α : Type} → [inst : Lean.ToJson α] → Lean.ToJson (Lean.Lsp.DiagnosticWith α)
Equations
- Lean.Lsp.instToJsonDiagnosticWith = { toJson := [anonymous] }
instance
Lean.Lsp.instFromJsonDiagnosticWith:
{α : Type} → [inst : Lean.FromJson α] → Lean.FromJson (Lean.Lsp.DiagnosticWith α)
Equations
- Lean.Lsp.instFromJsonDiagnosticWith = { fromJson? := [anonymous] }
@[inline]
- uri : Lean.Lsp.DocumentUri
- diagnostics : Array Lean.Lsp.Diagnostic
Equations
- Lean.Lsp.instInhabitedPublishDiagnosticsParams = { default := { uri := default, version? := default, diagnostics := default } }
Equations
- Lean.Lsp.instFromJsonPublishDiagnosticsParams = { fromJson? := [anonymous] }