Runner for tests/lean/interactive server tests. Put here to avoid repeated elaboration overhead
per test.
- freshPtr : USize
- knownPtrs : Std.TreeMap USize USize compare
Instances For
Equations
Instances For
Equations
- x.run s = StateT.run' x s
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.Client.instToJsonRpcRef = { toJson := fun (r : Lean.Lsp.RpcRef) => Lean.Json.mkObj [("__rpcref", Lean.toJson r.p)] }
Equations
- Lean.Server.Test.Runner.Client.instFromJsonRpcRef = { fromJson? := fun (j : Lean.Json) => do let __do_lift ← j.getObjValAs? USize "__rpcref" pure { p := __do_lift } }
- info : Lsp.RpcRef
- subexprPos : String
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- i.normalize = do let __do_lift ← Lean.Server.Test.Runner.Client.normalizedRef i.info pure { info := __do_lift, subexprPos := i.subexprPos, diffStatus? := i.diffStatus? }
Instances For
- type : Widget.TaggedText SubexprInfo
- val? : Option (Widget.TaggedText SubexprInfo)
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- type : Widget.TaggedText SubexprInfo
- ctx : Lsp.RpcRef
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- goals : Array InteractiveGoal
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- gs.normalize = do let __do_lift ← Array.mapM (fun (x : Lean.Server.Test.Runner.Client.InteractiveGoal) => x.normalize) gs.goals pure { goals := __do_lift }
Instances For
- range : Lsp.Range
- term : Lsp.RpcRef
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- strict {α β : Type} : α → StrictOrLazy α β
- lazy {α β : Type} : β → StrictOrLazy α β
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.Client.instToJsonStrictOrLazy.toJson (Lean.Server.Test.Runner.Client.StrictOrLazy.strict a) = Lean.Json.mkObj [("strict", Lean.toJson a)]
- Lean.Server.Test.Runner.Client.instToJsonStrictOrLazy.toJson (Lean.Server.Test.Runner.Client.StrictOrLazy.lazy a) = Lean.Json.mkObj [("lazy", Lean.toJson a)]
Instances For
- expr : Widget.TaggedText SubexprInfo → MsgEmbed
- goal : InteractiveGoal → MsgEmbed
- widget (wi : WidgetInstance) (alt : Widget.TaggedText MsgEmbed) : MsgEmbed
- trace (indent : Nat) (cls : Name) (msg : Widget.TaggedText MsgEmbed) (collapsed : Bool) (children : StrictOrLazy (Array (Widget.TaggedText MsgEmbed)) Lsp.RpcRef) : MsgEmbed
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- type : Option (Widget.TaggedText SubexprInfo)
- exprExplicit : Option (Widget.TaggedText SubexprInfo)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- kind : GoToKind
- info : Lsp.RpcRef
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- query : String
- msg : Widget.TaggedText MsgEmbed
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- subexpr (info : SubexprInfo) : HighlightedSubexprInfo
- highlighted : HighlightedSubexprInfo
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lean.Server.Test.Runner.Client.instToJsonHighlightedSubexprInfo.toJson Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.highlighted = Lean.toJson "highlighted"
Instances For
Equations
- Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.highlighted.normalize = pure Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.highlighted
- (Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.subexpr i).normalize = do let __do_lift ← i.normalize pure (Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.subexpr __do_lift)
Instances For
- expr : Widget.TaggedText HighlightedSubexprInfo → HighlightedMsgEmbed
- goal : InteractiveGoal → HighlightedMsgEmbed
- widget (wi : WidgetInstance) (alt : Widget.TaggedText HighlightedMsgEmbed) : HighlightedMsgEmbed
- trace (indent : Nat) (cls : Name) (msg : Widget.TaggedText HighlightedMsgEmbed) (collapsed : Bool) (children : StrictOrLazy (Array (Widget.TaggedText HighlightedMsgEmbed)) Lsp.RpcRef) : HighlightedMsgEmbed
- highlighted : HighlightedMsgEmbed
Instances For
Test-only instances
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.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.printOutputLn j = do let __do_lift ← Lean.Server.Test.Runner.patchUris j IO.eprintln __do_lift
Instances For
- uri : Lsp.DocumentUri
- synced : Bool
- lineNo : Nat
- lastActualLineNo : Nat
- pos : Lsp.Position
- method : String
- params : String
- versionNo : Nat
- requestNo : Nat
Instances For
Equations
Instances For
Equations
- act.run init = discard (StateT.run act init)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.logResponse method p β logParam = discard (Lean.Server.Test.Runner.requestWithLoggedResponse method p β logParam)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.logRpcResponse method p β logParam normalize = discard (Lean.Server.Test.Runner.rpcRequestWithLoggedResponse method p β logParam normalize)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Waits for a textDocument/publishDiagnostics notification with a specific message to be emitted.
Discards all received messages, so should not be combined with Ipc.collectDiagnostics. Used to
implement the waitFor test directive.
If the server reports a $/lean/fileProgress notification with fatalError kind, this aborts
with an error rather than blocking forever: the message we are waiting for will never be
produced (the worker either crashed or its header processing failed fatally, so no body
elaboration will run).
Kept here rather than in Lean.Lsp.Ipc because it is specifically a test-driver helper rather
than a general-purpose IPC primitive.
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.