Struct lsp_types::FoldingRangeCapability
source · pub struct FoldingRangeCapability {
pub dynamic_registration: Option<bool>,
pub range_limit: Option<u64>,
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<u64>
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
sourceimpl Debug for FoldingRangeCapability
impl Debug for FoldingRangeCapability
sourceimpl Default for FoldingRangeCapability
impl Default for FoldingRangeCapability
sourcefn default() -> FoldingRangeCapability
fn default() -> FoldingRangeCapability
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FoldingRangeCapability
impl<'de> Deserialize<'de> for FoldingRangeCapability
sourcefn 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
sourceimpl PartialEq<FoldingRangeCapability> for FoldingRangeCapability
impl PartialEq<FoldingRangeCapability> for FoldingRangeCapability
sourcefn eq(&self, other: &FoldingRangeCapability) -> bool
fn eq(&self, other: &FoldingRangeCapability) -> bool
sourceimpl Serialize for FoldingRangeCapability
impl Serialize for FoldingRangeCapability
impl Eq for FoldingRangeCapability
impl StructuralEq for FoldingRangeCapability
impl StructuralPartialEq for FoldingRangeCapability
Auto Trait Implementations
impl RefUnwindSafe for FoldingRangeCapability
impl Send for FoldingRangeCapability
impl Sync for FoldingRangeCapability
impl Unpin for FoldingRangeCapability
impl UnwindSafe for FoldingRangeCapability
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more