Represents a folding range.

Fields

startLine:Int

The zero-based line number from where the folded range starts.

@:optionaloptionalstartCharacter:Null<Int>

The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.

@:optionaloptionalkind:Null<FoldingRangeKind>

Describes the kind of the folding range such as `comment' or 'region'. The kind is used to categorize folding ranges. See FoldingRangeKind for an enumeration of standardized kinds.

endLine:Int

The zero-based line number where the folded range ends.

@:optionaloptionalendCharacter:Null<Int>

The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.

@:optionaloptionalcollapsedText:Null<String>

The text that the client should show when the specified range is collapsed. If not defined or not supported by the client, a default will be chosen by the client.

Available since

3.17.0

.