A text edit applicable to a text document.

interface TextEdit {
    newText: string;
    range: Range;
}

Hierarchy (View Summary)

Properties

Properties

newText: string

The string to be inserted. For delete operations use an empty string.

range: Range

The range of the text document to be manipulated. To insert text into a document create a range where start === end.