tinymist_world::debug_loc

Type Alias CharPosition

Source
pub type CharPosition = LspPosition;
👎Deprecated: Use LspPosition instead.
Expand description

The legacy name of the character position.

Aliased Type§

struct CharPosition {
    pub line: u32,
    pub character: u32,
}

Fields§

§line: u32

Line position in a document (zero-based).

§character: u32

Character offset on a line in a document (zero-based). The meaning of this offset is determined by the negotiated PositionEncodingKind.

If the character value is greater than the line length it defaults back to the line length.