x4js - v2.2.49
    Preparing search index...

    A collection of decorations

    interface IEditorDecorationsCollection {
        length: number;
        onDidChange: IEvent<IModelDecorationsChangedEvent>;
        append(newDecorations: readonly IModelDeltaDecoration[]): string[];
        clear(): void;
        getRange(index: number): Range;
        getRanges(): Range[];
        has(decoration: IModelDecoration): boolean;
        set(newDecorations: readonly IModelDeltaDecoration[]): string[];
    }
    Index
    length: number

    Get the decorations count.

    An event emitted when decorations change in the editor, but the change is not caused by us setting or clearing the collection.