MingaEditor.State.LSP.FormatOperation (Minga v0.1.0)

Copy Markdown View Source

Lifecycle data for one asynchronous LSP formatting request.

Summary

Functions

Builds a formatting operation from captured request data.

Returns every Editor-owned timer reference for this operation.

Types

t()

@type t() :: %MingaEditor.State.LSP.FormatOperation{
  buffer: pid(),
  cancellable_timer: reference(),
  client: pid(),
  encoding: Minga.LSP.PositionEncoding.encoding(),
  ref: reference(),
  spinner_timer: reference(),
  timeout_timer: reference(),
  version: non_neg_integer()
}

Functions

new(attrs)

@spec new(keyword()) :: t()

Builds a formatting operation from captured request data.

timer_refs(operation)

@spec timer_refs(t()) :: [reference()]

Returns every Editor-owned timer reference for this operation.