Equations
- IO.throwServerError err = throw (IO.userError err)
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.
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.
Prefixes all written outputs with pre
.
Equations
- One or more equations did not get rendered due to their size.
Transform the given path to a file:// URI.
Equations
- One or more equations did not get rendered due to their size.
Return local path from file:// URI, if any.
Equations
- One or more equations did not get rendered due to their size.
- uri : Lean.Lsp.DocumentUri
- version : Nat
- text : Lean.FileMap
Equations
- Lean.Server.instInhabitedDocumentMeta = { default := { uri := default, version := default, text := default } }
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.
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.
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.
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)
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.
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.
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.
Equations
- Lean.Server.publishProgressDone m hOut = Lean.Server.publishProgress m #[] hOut
Equations
- String.Range.toLspRange text r = { start := Lean.FileMap.utf8PosToLspPos text r.start, end := Lean.FileMap.utf8PosToLspPos text r.stop }