A document bundled with processing information. Turned into EditableDocument as soon as the
reporter task has been started.
- meta : DocumentMetaThe document. 
- initSnap : Language.Lean.InitialSnapshotInitial processing snapshot. 
- cmdSnaps : IO.AsyncList IO.Error Snapshots.SnapshotOld representation for backward compatibility. 
- diagnosticsRef : IO.Ref (Array Widget.InteractiveDiagnostic)Interactive versions of diagnostics reported so far. Filled by reportSnapshotsand read byhandleGetInteractiveDiagnosticsRequest.
Instances For
structure
Lean.Server.FileWorker.EditableDocumentextends Lean.Server.FileWorker.EditableDocumentCore :
EditableDocumentCore with reporter task.
- reporter : ServerTask UnitTask reporting processing status back to client. We store it here for implementing waitForDiagnostics.
Instances For
Construct a VersionedTextDocumentIdentifier from an EditableDocument -
Instances For
- objects : RpcObjectStore
- expireTime : NatThe IO.monoMsNowtime 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
Equations
- Lean.Server.FileWorker.RpcSession.keptAlive monoMsNow s = { objects := s.objects, expireTime := monoMsNow + Lean.Server.FileWorker.RpcSession.keepAliveTimeMs }
Instances For
Equations
- s.hasExpired = do let __do_lift ← liftM IO.monoMsNow pure (decide (s.expireTime ≤ __do_lift))