Interface IGlyphMarginLanesModel

interface IGlyphMarginLanesModel {
    requiredLanes: number;
    getLanesAtLine(lineNumber: number): GlyphMarginLane[];
    push(
        lane: GlyphMarginLane,
        range: Range,
        persist?: boolean,
    ): void;
    reset(maxLine: number): void;
}

Properties§

§readonly requiredLanes: number

The number of lanes that should be rendered in the editor.

Methods§

§

getLanesAtLine(lineNumber: number): GlyphMarginLane[]

Gets the lanes that should be rendered starting at a given line number.

§

push(
    lane: GlyphMarginLane,
    range: Range,
    persist?: boolean,
): void

Registers that a lane should be visible at the Range in the model.

§

reset(maxLine: number): void

Resets the model and ensures it can contain at least maxLine lines.