File: .lake/packages/lean4/src/lean/Lean/Server/FileWorker/Utils.lean

full_name: _private.«.lake».packages.lean4.src.lean.Lean.Server.FileWorker.Utils.0.Lean.Server.FileWorker.mkCmdSnaps
code: private partial def mkCmdSnaps (initSnap : Language.Lean.InitialSnapshot) :
    AsyncList IO.Error Snapshot 
goal: IO.AsyncList IO.Error Lean.Server.Snapshots.Snapshot

full_name: _private.«.lake».packages.lean4.src.lean.Lean.Server.FileWorker.Utils.0.Lean.Server.FileWorker.mkCmdSnaps.go
code: private partial def mkCmdSnaps (initSnap : Language.Lean.InitialSnapshot) :
    AsyncList IO.Error Snapshot 
goal: Task (Except IO.Error (IO.AsyncList IO.Error Lean.Server.Snapshots.Snapshot))

full_name: Lean.Server.FileWorker.EditableDocumentCore.meta
code: /--
A document bundled with processing information. Turned into `EditableDocument` as soon as the
reporter task has been started.
-/
structure EditableDocumentCore where
  /-- The document. -/
  meta     : DocumentMeta
  /-- Initial processing snapshot. -/
  initSnap : Language.Lean.InitialSnapshot
  /-- Old representation for backward compatibility. -/
  cmdSnaps : AsyncList IO.Error Snapshot := mkCmdSnaps initSnap
  /--
  Interactive versions of diagnostics reported so far. Filled by `reportSnapshots` and read by
  `handleGetInteractiveDiagnosticsRequest`.
  -/
  diagnosticsRef : IO.Ref (Array Widget.InteractiveDiagnostic)
goal: Lean.Server.DocumentMeta

full_name: Lean.Server.FileWorker.EditableDocumentCore.cmdSnaps
code: /--
A document bundled with processing information. Turned into `EditableDocument` as soon as the
reporter task has been started.
-/
structure EditableDocumentCore where
  /-- The document. -/
  meta     : DocumentMeta
  /-- Initial processing snapshot. -/
  initSnap : Language.Lean.InitialSnapshot
  /-- Old representation for backward compatibility. -/
  cmdSnaps : AsyncList IO.Error Snapshot := mkCmdSnaps initSnap
  /--
  Interactive versions of diagnostics reported so far. Filled by `reportSnapshots` and read by
  `handleGetInteractiveDiagnosticsRequest`.
  -/
  diagnosticsRef : IO.Ref (Array Widget.InteractiveDiagnostic)
goal: IO.AsyncList IO.Error Lean.Server.Snapshots.Snapshot

full_name: Lean.Server.FileWorker.EditableDocumentCore
code: /--
A document bundled with processing information. Turned into `EditableDocument` as soon as the
reporter task has been started.
-/
structure EditableDocumentCore where
  /-- The document. -/
  meta     : DocumentMeta
  /-- Initial processing snapshot. -/
  initSnap : Language.Lean.InitialSnapshot
  /-- Old representation for backward compatibility. -/
  cmdSnaps : AsyncList IO.Error Snapshot := mkCmdSnaps initSnap
  /--
  Interactive versions of diagnostics reported so far. Filled by `reportSnapshots` and read by
  `handleGetInteractiveDiagnosticsRequest`.
  -/
  diagnosticsRef : IO.Ref (Array Widget.InteractiveDiagnostic)
goal: Type

full_name: Lean.Server.FileWorker.EditableDocumentCore.initSnap
code: /--
A document bundled with processing information. Turned into `EditableDocument` as soon as the
reporter task has been started.
-/
structure EditableDocumentCore where
  /-- The document. -/
  meta     : DocumentMeta
  /-- Initial processing snapshot. -/
  initSnap : Language.Lean.InitialSnapshot
  /-- Old representation for backward compatibility. -/
  cmdSnaps : AsyncList IO.Error Snapshot := mkCmdSnaps initSnap
  /--
  Interactive versions of diagnostics reported so far. Filled by `reportSnapshots` and read by
  `handleGetInteractiveDiagnosticsRequest`.
  -/
  diagnosticsRef : IO.Ref (Array Widget.InteractiveDiagnostic)
goal: Lean.Language.Lean.InitialSnapshot

full_name: Lean.Server.FileWorker.EditableDocumentCore.diagnosticsRef
code: /--
A document bundled with processing information. Turned into `EditableDocument` as soon as the
reporter task has been started.
-/
structure EditableDocumentCore where
  /-- The document. -/
  meta     : DocumentMeta
  /-- Initial processing snapshot. -/
  initSnap : Language.Lean.InitialSnapshot
  /-- Old representation for backward compatibility. -/
  cmdSnaps : AsyncList IO.Error Snapshot := mkCmdSnaps initSnap
  /--
  Interactive versions of diagnostics reported so far. Filled by `reportSnapshots` and read by
  `handleGetInteractiveDiagnosticsRequest`.
  -/
  diagnosticsRef : IO.Ref (Array Widget.InteractiveDiagnostic)
goal: IO.Ref (Array Lean.Widget.InteractiveDiagnostic)

full_name: Lean.Server.FileWorker.EditableDocument
code: /-- `EditableDocumentCore` with reporter task. -/
structure EditableDocument extends EditableDocumentCore where
  /--
    Task reporting processing status back to client. We store it here for implementing
    `waitForDiagnostics`. -/
  reporter : Task Unit
goal: Type

full_name: Lean.Server.FileWorker.EditableDocument.reporter
code: /-- `EditableDocumentCore` with reporter task. -/
structure EditableDocument extends EditableDocumentCore where
  /--
    Task reporting processing status back to client. We store it here for implementing
    `waitForDiagnostics`. -/
  reporter : Task Unit
goal: Task Unit

full_name: Lean.Server.FileWorker.EditableDocument.versionedIdentifier
code: /-- Construct a VersionedTextDocumentIdentifier from an EditableDocument --/
def versionedIdentifier (ed : EditableDocument) : Lsp.VersionedTextDocumentIdentifier 
goal: Lean.Lsp.VersionedTextDocumentIdentifier

full_name: Lean.Server.FileWorker.RpcSession.expireTime
code: structure RpcSession where
  objects         : RpcObjectStore
  /-- The `IO.monoMsNow` time when the session expires. See `$/lean/rpc/keepAlive`. -/
  expireTime      : Nat
goal: Nat

full_name: Lean.Server.FileWorker.RpcSession.objects
code: structure RpcSession where
  objects         : RpcObjectStore
  /-- The `IO.monoMsNow` time when the session expires. See `$/lean/rpc/keepAlive`. -/
  expireTime      : Nat
goal: Lean.Server.RpcObjectStore

full_name: Lean.Server.FileWorker.RpcSession
code: structure RpcSession where
  objects         : RpcObjectStore
  /-- The `IO.monoMsNow` time when the session expires. See `$/lean/rpc/keepAlive`. -/
  expireTime      : Nat
goal: Type

full_name: Lean.Server.FileWorker.RpcSession.keepAliveTimeMs
code: def keepAliveTimeMs : Nat 
goal: Nat

full_name: Lean.Server.FileWorker.RpcSession.new
code: def new : IO (UInt64 × RpcSession) 
goal: IO (UInt64 × Lean.Server.FileWorker.RpcSession)

full_name: Lean.Server.FileWorker.RpcSession.keptAlive
code: def keptAlive (monoMsNow : Nat) (s : RpcSession) : RpcSession 
goal: Lean.Server.FileWorker.RpcSession

full_name: Lean.Server.FileWorker.RpcSession.hasExpired
code: def hasExpired (s : RpcSession) : IO Bool 
goal: IO Bool