def
Lean.Server.FileWorker.logSnapContent
(s : Lean.Server.Snapshots.Snapshot)
(text : Lean.FileMap)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
- aborted: Lean.Server.FileWorker.ElabTaskError
- ioError: IO.Error → Lean.Server.FileWorker.ElabTaskError
Instances For
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Server.FileWorker.CancelToken.check
{m : Type → Type}
[MonadExceptOf Lean.Server.FileWorker.ElabTaskError m]
[MonadLiftT (ST IO.RealWorld) m]
[Monad m]
(tk : Lean.Server.FileWorker.CancelToken)
:
m Unit
Equations
- Lean.Server.FileWorker.CancelToken.check tk = do let c ← ST.Ref.get tk.ref if c = true then throw Lean.Server.FileWorker.ElabTaskError.aborted else pure PUnit.unit
Instances For
Equations
Instances For
A document editable in the sense that we track the environment and parser state after each command so that edits can be applied without recompiling code appearing earlier in the file.
- meta : Lean.Server.DocumentMeta
State snapshots after header and each command.
- cancelTk : Lean.Server.FileWorker.CancelToken
Instances For
def
Lean.Server.FileWorker.EditableDocument.versionedIdentifier
(ed : Lean.Server.FileWorker.EditableDocument)
:
Construct a VersionedTextDocumentIdentifier from an EditableDocument -
Equations
- Lean.Server.FileWorker.EditableDocument.versionedIdentifier ed = { uri := ed.meta.uri, version? := some ed.meta.version }
Instances For
- objects : Lean.Server.RpcObjectStore
- expireTime : Nat
The
IO.monoMsNow
time when the session expires. See$/lean/rpc/keepAlive
.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.FileWorker.RpcSession.keptAlive
(monoMsNow : Nat)
(s : Lean.Server.FileWorker.RpcSession)
:
Equations
- Lean.Server.FileWorker.RpcSession.keptAlive monoMsNow s = { objects := s.objects, expireTime := monoMsNow + Lean.Server.FileWorker.RpcSession.keepAliveTimeMs }
Instances For
Equations
- Lean.Server.FileWorker.RpcSession.hasExpired s = do let __do_lift ← liftM IO.monoMsNow pure (decide (s.expireTime ≤ __do_lift))