Interface: Edit
typings/Types.Edit
Represent a single edit/change in the document
Hierarchy
Edit
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
range
• range: Range
Defined in
text
• text: string