Skip to main content
Module

x/pbkit/language-server/lsp.ts>InsertTextFormat

Protobuf toolkit for modern web development
Latest
enum InsertTextFormat
import { InsertTextFormat } from "https://deno.land/x/pbkit@v0.0.70/language-server/lsp.ts";

Defines whether the insert text in a completion item should be interpreted as plain text or a snippet.

Members

PlainText = 1

The primary text to be inserted is treated as a plain string.

Snippet = 2

The primary text to be inserted is treated as a snippet.

A snippet can define tab stops and placeholders with $1, $2 and ${3:foo}. $0 defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too.