Minga.Buffer.EditDelta (minga_sdk v0.1.0)

Copy Markdown View Source

Describes a single edit applied to a buffer.

Extensions receive this in BufferChangedEvent.delta when tracking agent edit positions. The new_end_position field gives the cursor position after the edit.

This is a compile-time stub.

Summary

Types

t()

@type t() :: %Minga.Buffer.EditDelta{
  inserted_text: String.t(),
  new_end_byte: non_neg_integer(),
  new_end_position: {non_neg_integer(), non_neg_integer()},
  old_end_byte: non_neg_integer(),
  old_end_position: {non_neg_integer(), non_neg_integer()},
  start_byte: non_neg_integer(),
  start_position: {non_neg_integer(), non_neg_integer()}
}