class

LSP::FoldingRange

Inherits JSON::Serializable < Reference < Object

Represents a folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Clients are free to ignore invalid ranges.

Constructors

new(start_line : Int64, end_line : Int64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

end_character

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

Source
end_character=(end_character : Int64 | Nil)

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

Source
end_line

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.

Source
end_line=(end_line : Int64)

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.

Source
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 standardized kinds.

Source
kind=(kind : FoldingRangeKind | Nil)

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 standardized kinds.

Source
start_character

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

Source
start_character=(start_character : Int64 | Nil)

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

Source
start_line

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.

Source
start_line=(start_line : Int64)

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.

Source