A range within a text document.

This is a JS-exposed model type (`dh.lsp.Range`) that closely follows the Language Server Protocol range shape.

Hierarchy

  • Range

Constructors

Properties

Methods

Constructors

Properties

The end position of the range.

start: Position

The start position of the range.

Methods

  • Checks whether the provided range is contained within this range.

    Parameters

    • innerStart: Position

      the start position to check

    • innerEnd: Position

      the end position to check

    Returns boolean

    true if the provided range is inside this range