Skip to main content
Module

x/vscode_languageserver_textdocument/mod.ts>TextDocument.create

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

Creates a new text document.

Parameters

The document's uri.

languageId: string

The document's language Id.

version: number

The document's initial version number.

content: string

The document's content.