CursorPosition

data class CursorPosition(val line: Int, val column: Int)

A zero-based position within a text document.

Parameters

line

the line index

column

the character index within the line

Constructors

Link copied to clipboard
constructor(line: Int, column: Int)

Properties

Link copied to clipboard
val column: Int
Link copied to clipboard
val line: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun CursorPosition.toLsp4j(): Position
Link copied to clipboard

Converts a CursorPosition to a character offset (index) in the text.