Skip to main content
Module

x/vscode_languageserver_textdocument/mod.ts>TextDocument.update

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

Updates a TextDocument by modifing its content.

Parameters

document: TextDocument

the document to update. Only documents created by TextDocument.create are valid inputs.

the changes to apply to the document.

version: number

Returns

The updated TextDocument. Note: That's the same document instance passed in as first parameter.