Interface ISerializedModelContentChangedEvent
interface ISerializedModelContentChangedEvent {
changes: IModelContentChange[];
eol: string;
isEolChange: boolean;
isFlush: boolean;
isRedoing: boolean;
isUndoing: boolean;
versionId: number;
}Properties§
§§§§§§
readonly changes: IModelContentChange[]§
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.
The changes are ordered from the end of the document to the beginning, so they should be safe to apply in sequence.