Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • FoldingRange

Index

Constructors

Properties

Constructors

Properties

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.

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.

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.