Struct lsp_types::FoldingRangeClientCapabilities [−][src]
pub struct FoldingRangeClientCapabilities {
pub dynamic_registration: Option<bool>,
pub range_limit: Option<u32>,
pub line_folding_only: Option<bool>,
}
Fields
dynamic_registration: Option<bool>
Whether implementation supports dynamic registration for folding range providers. If this is set to true
the client supports the new (FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)
return value for the corresponding server capability as well.
range_limit: Option<u32>
The maximum number of folding ranges that the client prefers to receive per document. The value serves as a hint, servers are free to follow the limit.
line_folding_only: Option<bool>
If set, the client signals that it only supports folding complete lines. If set, client will
ignore specified startCharacter
and endCharacter
properties in a FoldingRange.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for FoldingRangeClientCapabilities
impl Sync for FoldingRangeClientCapabilities
impl Unpin for FoldingRangeClientCapabilities
impl UnwindSafe for FoldingRangeClientCapabilities
Blanket Implementations
Mutably borrows from an owned value. Read more