- strict: {α β : Type} → α → Lean.Widget.StrictOrLazy α β
- lazy: {α β : Type} → β → Lean.Widget.StrictOrLazy α β
Instances For
instance
Lean.Widget.instInhabitedStrictOrLazy :
{a : Type} → [inst : Inhabited a] → {a_1 : Type} → Inhabited (Lean.Widget.StrictOrLazy a a_1)
Equations
- Lean.Widget.instInhabitedStrictOrLazy = { default := Lean.Widget.StrictOrLazy.strict default }
instance
Lean.Widget.instRpcEncodableStrictOrLazy
{α : Type}
{β : Type}
[inst : Lean.Server.RpcEncodable α]
[inst : Lean.Server.RpcEncodable β]
:
Equations
- Lean.Widget.instRpcEncodableStrictOrLazy = { rpcEncode := Lean.Widget.instRpcEncodableStrictOrLazy.enc✝, rpcDecode := Lean.Widget.instRpcEncodableStrictOrLazy.dec✝ }
- indent : Nat
- children : Array (Lean.Server.WithRpcRef Lean.MessageData)
Instances For
- expr: Lean.Widget.CodeWithInfos → Lean.Widget.MsgEmbed
- goal: Lean.Widget.InteractiveGoal → Lean.Widget.MsgEmbed
- trace: Nat → Lean.Name → Lean.Widget.TaggedText Lean.Widget.MsgEmbed → Bool → Lean.Widget.StrictOrLazy (Array (Lean.Widget.TaggedText Lean.Widget.MsgEmbed)) (Lean.Server.WithRpcRef Lean.Widget.LazyTraceChildren) → Lean.Widget.MsgEmbed
Instances For
Equations
- Lean.Widget.instInhabitedMsgEmbed = { default := Lean.Widget.MsgEmbed.expr default }
Equations
- Lean.Widget.instRpcEncodableMsgEmbed = { rpcEncode := Lean.Widget.instRpcEncodableMsgEmbed.enc✝, rpcDecode := Lean.Widget.instRpcEncodableMsgEmbed.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.
instance
Lean.Widget.instRpcEncodableDiagnosticWith
{α : Type}
[inst : Lean.Server.RpcEncodable α]
:
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.
def
Lean.Widget.InteractiveDiagnostic.toDiagnostic.prettyTt
(tt : Lean.Widget.TaggedText Lean.Widget.MsgEmbed)
:
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Widget.instInhabitedEmbedFmt = { default := Lean.Widget.EmbedFmt.expr default default }
def
Lean.Widget.msgToInteractive
(msgData : Lean.MessageData)
(hasWidgets : Bool)
(indent : optParam Nat 0)
:
Equations
- One or more equations did not get rendered due to their size.
partial def
Lean.Widget.msgToInteractive.fmtToTT
(embeds : Array Lean.Widget.EmbedFmt)
(fmt : Lean.Format)
(indent : Nat)
:
def
Lean.Widget.msgToInteractiveDiagnostic
(text : Lean.FileMap)
(m : Lean.Message)
(hasWidgets : Bool)
:
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.