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
Instances For
Instances For
Instances For
- info : Lsp.RpcRef
- subexprPos : String
Instances For
Instances For
Instances For
Instances For
- type : Widget.TaggedText SubexprInfo
- val? : Option (Widget.TaggedText SubexprInfo)
Instances For
- type : Widget.TaggedText SubexprInfo
- ctx : Lsp.RpcRef
Instances For
Instances For
Instances For
Instances For
- goals : Array InteractiveGoal
Instances For
Instances For
- range : Lsp.Range
- term : Lsp.RpcRef
Instances For
Instances For
- strict {α β : Type} : α → StrictOrLazy α β
- lazy {α β : Type} : β → StrictOrLazy α β
Instances For
Instances For
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
Instances For
Instances For
- type : Option (Widget.TaggedText SubexprInfo)
- exprExplicit : Option (Widget.TaggedText SubexprInfo)
Instances For
Instances For
- kind : GoToKind
- info : Lsp.RpcRef
Instances For
- query : String
- msg : Widget.TaggedText MsgEmbed
Instances For
- subexpr (info : SubexprInfo) : HighlightedSubexprInfo
- highlighted : HighlightedSubexprInfo
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
- uri : Lsp.DocumentUri
- synced : Bool
- lineNo : Nat
- lastActualLineNo : Nat
- pos : Lsp.Position
- method : String
- params : String
- versionNo : Nat
- requestNo : Nat
Instances For
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.