class LSProtocol::FoldingRange
- LSProtocol::FoldingRange
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(end_line : UInt32 | Nil, start_line : UInt32 | Nil, collapsed_text : String | Nil = nil, end_character : UInt32 | Nil = nil, kind : FoldingRangeKind | String | Nil = nil, start_character : UInt32 | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #collapsed_text : String | Nil
- #end_character : UInt32 | Nil
- #end_line : UInt32
-
#kind : FoldingRangeKind | String | Nil
Describes the kind of the folding range such as 'comment' or 'region'.
- #start_character : UInt32 | Nil
- #start_line : UInt32
Constructor Detail
def self.new(end_line : UInt32 | Nil, start_line : UInt32 | Nil, collapsed_text : String | Nil = nil, end_character : UInt32 | Nil = nil, kind : FoldingRangeKind | String | Nil = nil, start_character : UInt32 | Nil = nil)
#
Instance Method Detail
def kind : FoldingRangeKind | String | 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.