FoldingRangeProvider: ((editor, currentFolds) => [number, number][])

Type declaration

    • (editor, currentFolds): [number, number][]
    • Callback used to add extra foldable ranges to an editor.

      Parameters

      • editor: PrismEditor

        Editor the folding ranges are added to.

      • currentFolds: [number, number][]

        The ranges that are currently foldable.

      Returns [number, number][]

      An array of extra foldable ranges.

Generated using TypeDoc