pub struct FoldingRange {
pub start_line: u32,
pub start_character: Option<u32>,
pub end_line: u32,
pub end_character: Option<u32>,
pub kind: Option<FoldingRangeKind>,
pub collapsed_text: Option<String>,
}Expand description
Represents a folding range.
Fields§
§start_line: u32The 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.
start_character: Option<u32>The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
end_line: u32The 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.
end_character: Option<u32>The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
kind: Option<FoldingRangeKind>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.
collapsed_text: Option<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.
@since 3.17.0
Trait Implementations§
Source§impl Clone for FoldingRange
impl Clone for FoldingRange
Source§fn clone(&self) -> FoldingRange
fn clone(&self) -> FoldingRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more