Skip to main content
Module

x/vscode_languageserver_textdocument/mod.ts>Range

Language server protocol implementation for VSCode. This allows implementing language services in JS/TS running on Deno.
interface Range
import { type Range } from "https://deno.land/x/vscode_languageserver_textdocument@v0.1.0/mod.ts";

A range in a text document expressed as (zero-based) start and end positions.

If you want to specify a range that contains a line including the line ending character(s) then use an end position denoting the start of the next line. For example:

{
    start: { line: 5, character: 23 }
    end : { line 6, character : 0 }
}

Properties

start: Position

The range's start position

The range's end position.