[][src]Struct lsp_types::SemanticTokensClientCapabilities

pub struct SemanticTokensClientCapabilities {
    pub dynamic_registration: Option<bool>,
    pub requests: SemanticTokensClientCapabilitiesRequests,
    pub token_types: Vec<SemanticTokenType>,
    pub token_modifiers: Vec<SemanticTokenModifier>,
    pub formats: Vec<TokenFormat>,
    pub overlapping_token_support: Option<bool>,
    pub multiline_token_support: Option<bool>,
}

Capabilities specific to the textDocument/semanticTokens/* requests.

@since 3.16.0

Fields

dynamic_registration: Option<bool>

Whether implementation supports dynamic registration. If this is set to true the client supports the new (TextDocumentRegistrationOptions & StaticRegistrationOptions) return value for the corresponding server capability as well.

requests: SemanticTokensClientCapabilitiesRequests

Which requests the client supports and might send to the server depending on the server's capability. Please note that clients might not show semantic tokens or degrade some of the user experience if a range or full request is advertised by the client but not provided by the server. If for example the client capability requests.full and request.range are both set to true but the server only provides a range provider the client might not render a minimap correctly or might even decide to not show any semantic tokens at all.

token_types: Vec<SemanticTokenType>

The token types that the client supports.

token_modifiers: Vec<SemanticTokenModifier>

The token modifiers that the client supports.

formats: Vec<TokenFormat>

The token formats the clients supports.

overlapping_token_support: Option<bool>

Whether the client supports tokens that can overlap each other.

multiline_token_support: Option<bool>

Whether the client supports tokens that can span multiple lines.

Trait Implementations

impl Clone for SemanticTokensClientCapabilities[src]

impl Debug for SemanticTokensClientCapabilities[src]

impl Default for SemanticTokensClientCapabilities[src]

impl<'de> Deserialize<'de> for SemanticTokensClientCapabilities[src]

impl Eq for SemanticTokensClientCapabilities[src]

impl PartialEq<SemanticTokensClientCapabilities> for SemanticTokensClientCapabilities[src]

impl Serialize for SemanticTokensClientCapabilities[src]

impl StructuralEq for SemanticTokensClientCapabilities[src]

impl StructuralPartialEq for SemanticTokensClientCapabilities[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.