Skip to main content
Module

x/vscode_languageserver_textdocument/mod.ts

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

Functions

Creates a new text document.

Updates a TextDocument by modifing its content.

Interfaces

Position in a text document expressed as zero-based line and character offset. The offsets are based on a UTF-16 string representation. So a string of the form a𐐀b the character offset of the character a is 0, the character offset of 𐐀 is 1 and the character offset of b is 3 since 𐐀 is represented using two code units in UTF-16.

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

A simple text document. Not to be implemented. The document keeps the content as string.

A text edit applicable to a text document.

Type Aliases

A tagging type for string properties that are actually URIs.

An event describing a change to a text document. If range and rangeLength are omitted the new text is considered to be the full content of the document.