Interface IGlyphMarginLanesModel

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

Properties

requiredLanes: number

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

Methods

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

    Parameters

    • lineNumber: number

    Returns GlyphMarginLane[]

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

    Parameters

    • lane: GlyphMarginLane
    • range: Range
    • Optional persist: boolean

      if true, notes that the lane should always be visible, even on lines where there's no specific request for that lane.

    Returns void

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

    Parameters

    • maxLine: number

    Returns void