class LSP::FoldingRange
- LSP::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:
lsp/protocol/folding_range.crConstructors
Instance Method Summary
- #end_character : Int32 | Nil
- #end_character=(end_character : Int32 | Nil)
- #end_line : Int32
- #end_line=(end_line : Int32)
-
#kind : FoldingRangeKind | Nil
Describes the kind of the folding range such as
comment
orregion
. -
#kind=(kind : FoldingRangeKind | Nil)
Describes the kind of the folding range such as
comment
orregion
. - #start_character : Int32 | Nil
- #start_character=(start_character : Int32 | Nil)
- #start_line : Int32
- #start_line=(start_line : Int32)
Constructor Detail
Instance Method Detail
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.
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.