FoldingRange

open class FoldingRange(source)

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.

Online Documentation

Constructors

Link copied to clipboard
constructor(start: Int, end: Int, kind: FoldingRangeKind = definedExternally)

Creates a new folding range.

Properties

Link copied to clipboard
var end: Int

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.

Link copied to clipboard

Describes the Kind} of the folding range such as {@link FoldingRangeKind.Comment 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.

Link copied to clipboard
var start: Int

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.