Theia API Documentation v1.65.0
    Preparing search index...

    Represents a text selection in an editor.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    active: Position

    The position of the cursor. This position might be before or after anchor.

    anchor: Position

    The position at which the selection starts. This position might be before or after active.

    End position.

    isEmpty: boolean

    true if start and end are equal

    isReversed: boolean

    A selection is reversed if its anchor is the end position.

    isSingleLine: boolean

    true if start.line and end.line are equal

    start: Position

    Start position.

    Methods