Documentation

Lean.Server.FileWorker.WidgetRequests

Registers all widget-related RPC procedures.

Equations
  • One or more equations did not get rendered due to their size.
instance Lean.Widget.instToJsonRpcEncodingPacket_7:
{msg indent : Type} → [inst : Lean.ToJson msg] → [inst : Lean.ToJson indent] → Lean.ToJson (Lean.Widget.RpcEncodingPacket✝ msg indent)
Equations
  • Lean.Widget.instToJsonRpcEncodingPacket_7 = { toJson := [anonymous] }
instance Lean.Widget.instFromJsonRpcEncodingPacket_7:
{msg indent : Type} → [inst : Lean.FromJson msg] → [inst : Lean.FromJson indent] → Lean.FromJson (Lean.Widget.RpcEncodingPacket✝ msg indent)
Equations
  • Lean.Widget.instFromJsonRpcEncodingPacket_7 = { fromJson? := [anonymous] }
structure Lean.Widget.InfoPopup:
Type

The information that the infoview uses to render a popup for when the user hovers over an expression.

Equations
Equations
  • One or more equations did not get rendered due to their size.
instance Lean.Widget.instFromJsonRpcEncodingPacket_8:
{type doc : Type} → [inst : Lean.FromJson type] → [inst : Lean.FromJson doc] → Lean.FromJson (Lean.Widget.RpcEncodingPacket✝ type doc)
Equations
  • Lean.Widget.instFromJsonRpcEncodingPacket_8 = { fromJson? := [anonymous] }
instance Lean.Widget.instToJsonRpcEncodingPacket_8:
{type doc : Type} → [inst : Lean.ToJson type] → [inst : Lean.ToJson doc] → Lean.ToJson (Lean.Widget.RpcEncodingPacket✝ type doc)
Equations
  • Lean.Widget.instToJsonRpcEncodingPacket_8 = { toJson := [anonymous] }

Given elaborator info for a particular subexpression. Produce the InfoPopup.

The intended usage of this is for the infoview to pass the InfoWithCtx which was stored for a particular SubexprInfo tag in a TaggedText generated with ppExprTagged.

Equations
  • One or more equations did not get rendered due to their size.
  • Return diagnostics for these lines only if present, otherwise return all diagnostics.

instance Lean.Widget.instToJsonRpcEncodingPacket_9:
{kind info : Type} → [inst : Lean.ToJson kind] → [inst : Lean.ToJson info] → Lean.ToJson (Lean.Widget.RpcEncodingPacket✝ kind info)
Equations
  • Lean.Widget.instToJsonRpcEncodingPacket_9 = { toJson := [anonymous] }
instance Lean.Widget.instFromJsonRpcEncodingPacket_9:
{kind info : Type} → [inst : Lean.FromJson kind] → [inst : Lean.FromJson info] → Lean.FromJson (Lean.Widget.RpcEncodingPacket✝ kind info)
Equations
  • Lean.Widget.instFromJsonRpcEncodingPacket_9 = { fromJson? := [anonymous] }