Skip to main content Crate kode_core Copy item path Source Buffer The text buffer, wrapping a ropey::Rope with position conversion helpers. CompletionContext Context passed to completion providers. CompletionItem A single completion suggestion. Diagnostic A single diagnostic finding from a [DiagnosticProvider]. EditStep A single edit step: insert, delete, or replace at a char offset.
Each step stores enough information to be inverted. Editor The editor state machine. Ties together buffer, selection, and history.
This is the primary public API for kode-core. History Undo/redo history using invertible transactions. Marker Position A position in the document as (line, column), both 0-indexed.
Column is measured in chars (not bytes). Selection A selection in the document. anchor is where the selection started,
head is where the cursor currently is. When anchor == head, it’s a
simple cursor with no selected text. Transaction A transaction groups one or more edit steps into an atomic operation.
Applying a transaction is all-or-nothing. Transactions can be inverted for undo. CompletionKind The kind of a completion item, used for icon display and sorting. CompletionTrigger What triggered the completion request. DiagnosticSeverity Severity levels, matching LSP DiagnosticSeverity semantics. MarkerSeverity