Interface IModelContentChangedEvent
Expand description
interface IModelContentChangedEvent {
changes: IModelContentChange[];
detailedReasonsChangeLengths: number[];
eol: string;
isEolChange: boolean;
isFlush: boolean;
isRedoing: boolean;
isUndoing: boolean;
versionId: number;
}Properties§
§§§§§§§§
readonly changes: IModelContentChange[]The changes are ordered from the end of the document to the beginning, so they should be safe to apply in sequence.
readonly detailed Reasons Change Lengths: number[]The sum of these lengths equals changes.length. The length of this array must equal the length of detailedReasons.
readonly eol: stringThe (new) end-of-line character.
readonly is Eol Change: booleanFlag that indicates that this event describes an eol change.
readonly is Flush: booleanFlag that indicates that all decorations were lost with this edit. The model has been reset to a new value.
readonly is Redoing: booleanFlag that indicates that this event was generated while redoing.
readonly is Undoing: booleanFlag that indicates that this event was generated while undoing.
readonly version Id: numberThe new version id the model has transitioned to.
An event describing a change in the text of a model.