Skip to main content

Interface: Edit

typings/Types.Edit

Represent a single edit/change in the document

Hierarchy

Properties

isReplace

Optional isReplace: boolean

If this edit is an insertion, ie the range has zero length, then this field can be set to true to indicate that any adjacent empty selection should not be shifted to the right, as would normally happen with an insertion. This is equivalent to the distinction in a vscode edit builder between doing a replace with an empty range versus doing an insert.

Defined in

typings/Types.ts:216


range

range: Range

Defined in

typings/Types.ts:204


text

text: string

Defined in

typings/Types.ts:205