A document bundled with processing information. Turned into EditableDocument
as soon as the
reporter task has been started.
- meta : Lean.Server.DocumentMeta
The document.
- initSnap : Lean.Language.Lean.InitialSnapshot
Initial processing snapshot.
- cmdSnaps : IO.AsyncList IO.Error Lean.Server.Snapshots.Snapshot
Old representation for backward compatibility.
- diagnosticsRef : IO.Ref (Array Lean.Widget.InteractiveDiagnostic)
Interactive versions of diagnostics reported so far. Filled by
reportSnapshots
and read byhandleGetInteractiveDiagnosticsRequest
.
Instances For
structure
Lean.Server.FileWorker.EditableDocumentextends Lean.Server.FileWorker.EditableDocumentCore :
EditableDocumentCore
with reporter task.
Task reporting processing status back to client. We store it here for implementing
waitForDiagnostics
.
Instances For
def
Lean.Server.FileWorker.EditableDocument.versionedIdentifier
(ed : Lean.Server.FileWorker.EditableDocument)
:
Construct a VersionedTextDocumentIdentifier from an EditableDocument -
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
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 }