class LSProtocol::SemanticTokensClientCapabilities
- LSProtocol::SemanticTokensClientCapabilities
- Reference
- Object
Overview
@since 3.16.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(formats : Array(TokenFormat) | Nil, requests : ClientSemanticTokensRequestOptions | Nil, token_modifiers : Array(String) | Nil, token_types : Array(String) | Nil, augments_syntax_tokens : Bool | Nil = nil, dynamic_registration : Bool | Nil = nil, multiline_token_support : Bool | Nil = nil, overlapping_token_support : Bool | Nil = nil, server_cancel_support : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #augments_syntax_tokens : Bool | Nil
- #dynamic_registration : Bool | Nil
-
#formats : Array(TokenFormat)
The token formats the clients supports.
- #multiline_token_support : Bool | Nil
- #overlapping_token_support : Bool | Nil
-
#requests : ClientSemanticTokensRequestOptions
Which requests the client supports and might send to the server depending on the server's capability.
- #server_cancel_support : Bool | Nil
- #token_modifiers : Array(String)
- #token_types : Array(String)
Constructor Detail
def self.new(formats : Array(TokenFormat) | Nil, requests : ClientSemanticTokensRequestOptions | Nil, token_modifiers : Array(String) | Nil, token_types : Array(String) | Nil, augments_syntax_tokens : Bool | Nil = nil, dynamic_registration : Bool | Nil = nil, multiline_token_support : Bool | Nil = nil, overlapping_token_support : Bool | Nil = nil, server_cancel_support : Bool | Nil = nil)
#
Instance Method Detail
def requests : ClientSemanticTokensRequestOptions
#
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.