Documentation

Lean.Widget.InteractiveDiagnostic

inductive Lean.Widget.StrictOrLazy (α : Type) (β : Type) :
Type
Instances For
    instance Lean.Widget.instInhabitedStrictOrLazy :
    {a : Type} → [inst : Inhabited a] → {a_1 : Type} → Inhabited (Lean.Widget.StrictOrLazy a a_1)
    Equations
    Equations
    • Lean.Widget.instRpcEncodableStrictOrLazy = { rpcEncode := Lean.Widget.instRpcEncodableStrictOrLazy.enc✝, rpcDecode := Lean.Widget.instRpcEncodableStrictOrLazy.dec✝ }
    @[inline]

    We embed objects in LSP diagnostics by storing them in the tag of an empty subtree (text ""). In other words, we terminate the MsgEmbed-tagged tree at embedded objects and instead store the pretty-printed embed (which can itself be a TaggedText) in the tag.

    Equations
    Equations
    • Lean.Widget.instRpcEncodableDiagnosticWith = { rpcEncode := Lean.Widget.instRpcEncodableDiagnosticWith.enc✝, rpcDecode := Lean.Widget.instRpcEncodableDiagnosticWith.dec✝ }
    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.
    Equations
    • One or more equations did not get rendered due to their size.

    Transform a Lean Message concerning the given text into an LSP Diagnostic.

    Equations
    • One or more equations did not get rendered due to their size.