Equations
- IO.throwServerError err = throw (IO.userError err)
Instances For
def
IO.FS.Stream.chainRight
(a : IO.FS.Stream)
(b : IO.FS.Stream)
(flushEagerly : optParam Bool false)
:
Chains two streams by creating a new stream s.t. writing to it
just writes to a
but reading from it also duplicates the read output
into b
, c.f. a | tee b
on Unix.
NB: if a
is written to but this stream is never read from,
the output will not be duplicated. Use this if you only care
about the data that was actually read.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
IO.FS.Stream.chainLeft
(a : IO.FS.Stream)
(b : IO.FS.Stream)
(flushEagerly : optParam Bool false)
:
Like tee a | b
on Unix. See chainOut
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Prefixes all written outputs with pre
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- uri : Lean.Lsp.DocumentUri
- version : Nat
- text : Lean.FileMap
Instances For
Equations
- Lean.Server.instInhabitedDocumentMeta = { default := { uri := default, version := default, text := default } }
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
Duplicates an I/O stream to a log file fName
in LEAN_SERVER_LOG_DIR
if that envvar is set.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.applyDocumentChange
(oldText : Lean.FileMap)
(change : Lean.Lsp.TextDocumentContentChangeEvent)
:
Returns the document contents with the change applied.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.foldDocumentChanges
(changes : Array Lean.Lsp.TextDocumentContentChangeEvent)
(oldText : Lean.FileMap)
:
Returns the document contents with all changes applied.
Equations
- Lean.Server.foldDocumentChanges changes oldText = Array.foldl Lean.Server.applyDocumentChange oldText changes 0 (Array.size changes)
Instances For
def
Lean.Server.publishDiagnostics
(m : Lean.Server.DocumentMeta)
(diagnostics : Array Lean.Lsp.Diagnostic)
(hOut : IO.FS.Stream)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.publishProgress
(m : Lean.Server.DocumentMeta)
(processing : Array Lean.Lsp.LeanFileProgressProcessingInfo)
(hOut : IO.FS.Stream)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.publishProgressAtPos
(m : Lean.Server.DocumentMeta)
(pos : String.Pos)
(hOut : IO.FS.Stream)
(kind : optParam Lean.Lsp.LeanFileProgressKind Lean.Lsp.LeanFileProgressKind.processing)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.publishProgressDone m hOut = Lean.Server.publishProgress m #[] hOut
Instances For
def
Lean.Server.applyWorkspaceEdit
(params : Lean.Lsp.ApplyWorkspaceEditParams)
(hOut : IO.FS.Stream)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- String.Range.toLspRange text r = { start := Lean.FileMap.utf8PosToLspPos text r.start, end := Lean.FileMap.utf8PosToLspPos text r.stop }