githubEdit

TextEdit

Represents an edit that is to be applied to a document.

A text edit object represents a change that should be made to an existing document in an editor object.

Class Methods

chevron-rightdelete(range: Range): TextEdithashtag

chevron-rightinsert(position: Position, newText: string): TextEdithashtag

chevron-rightreplace(range: Range, newText: string): TextEdithashtag

Constructor

new TextEdit(range: Range, newText: string: TextEdit)

Properties

chevron-rightnewText: stringhashtag

chevron-rightrange: Rangehashtag

Example

Last updated