Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FoldingRange

A line based folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Invalid ranges will be ignored.

Hierarchy

  • FoldingRange

Index

Constructors(1)

Properties(3)

Constructors(1)

constructor

  • Creates a new folding range.

    Parameters

    • start: number

      The start line of the folded range.

    • end: number

      The end line of the folded range.

    • Optional kind: FoldingRangeKind

      The kind of the folding range.

    Returns FoldingRange

Properties(3)

start

start: number

The zero-based start line of the range to fold. The folded area starts after the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.

end

end: number

The zero-based end line of the range to fold. The folded area ends with the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.

Optional kind

Describes the Kind of the folding range such as Comment or Region. The kind is used to categorize folding ranges and used by commands like 'Fold all comments'. See FoldingRangeKind for an enumeration of all kinds. If not set, the range is originated from a syntax element.

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网