A single edit operation, that has an identifier.

Hierarchy

  • IIdentifiedSingleEditOperation

Index

Properties

forceMoveMarkers

forceMoveMarkers: boolean

This indicates that this operation has "insert" semantics. i.e. forceMoveMarkers = true => if range is collapsed, all markers at the position will be moved.

identifier

An identifier associated with this single edit operation.

Optional isAutoWhitespaceEdit

isAutoWhitespaceEdit: boolean

This indicates that this operation is inserting automatic whitespace that can be removed on next model edit operation if config.trimAutoWhitespace is true.

range

range: Range

The range to replace. This can be empty to emulate a simple insert.

text

text: string

The text to replace with. This can be null to emulate a simple delete.