public class SemanticTokensCapabilities extends DynamicRegistrationCapabilities
| Constructor and Description |
|---|
SemanticTokensCapabilities() |
SemanticTokensCapabilities(java.lang.Boolean dynamicRegistration) |
SemanticTokensCapabilities(java.lang.Boolean dynamicRegistration,
SemanticTokensClientCapabilitiesRequests requests,
java.util.List<java.lang.String> tokenTypes,
java.util.List<java.lang.String> tokenModifiers,
java.util.List<java.lang.String> formats) |
SemanticTokensCapabilities(SemanticTokensClientCapabilitiesRequests requests,
java.util.List<java.lang.String> tokenTypes,
java.util.List<java.lang.String> tokenModifiers,
java.util.List<java.lang.String> formats) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAugmentsSyntaxTokens()
Whether the client uses semantic tokens to augment existing
syntax tokens.
|
java.util.List<java.lang.String> |
getFormats()
The formats the client supports.
|
java.lang.Boolean |
getMultilineTokenSupport()
Whether the client supports tokens that can span multiple lines.
|
java.lang.Boolean |
getOverlappingTokenSupport()
Whether the client supports tokens that can overlap each other.
|
SemanticTokensClientCapabilitiesRequests |
getRequests()
Which requests the client supports and might send to the server.
|
java.lang.Boolean |
getServerCancelSupport()
Whether the client allows the server to actively cancel a
semantic token request, e.g.
|
java.util.List<java.lang.String> |
getTokenModifiers()
The token modifiers that the client supports.
|
java.util.List<java.lang.String> |
getTokenTypes()
The token types that the client supports.
|
int |
hashCode() |
void |
setAugmentsSyntaxTokens(java.lang.Boolean augmentsSyntaxTokens)
Whether the client uses semantic tokens to augment existing
syntax tokens.
|
void |
setFormats(java.util.List<java.lang.String> formats)
The formats the client supports.
|
void |
setMultilineTokenSupport(java.lang.Boolean multilineTokenSupport)
Whether the client supports tokens that can span multiple lines.
|
void |
setOverlappingTokenSupport(java.lang.Boolean overlappingTokenSupport)
Whether the client supports tokens that can overlap each other.
|
void |
setRequests(SemanticTokensClientCapabilitiesRequests requests)
Which requests the client supports and might send to the server.
|
void |
setServerCancelSupport(java.lang.Boolean serverCancelSupport)
Whether the client allows the server to actively cancel a
semantic token request, e.g.
|
void |
setTokenModifiers(java.util.List<java.lang.String> tokenModifiers)
The token modifiers that the client supports.
|
void |
setTokenTypes(java.util.List<java.lang.String> tokenTypes)
The token types that the client supports.
|
java.lang.String |
toString() |
getDynamicRegistration, setDynamicRegistrationpublic SemanticTokensCapabilities()
public SemanticTokensCapabilities(java.lang.Boolean dynamicRegistration)
public SemanticTokensCapabilities(SemanticTokensClientCapabilitiesRequests requests, java.util.List<java.lang.String> tokenTypes, java.util.List<java.lang.String> tokenModifiers, java.util.List<java.lang.String> formats)
public SemanticTokensCapabilities(java.lang.Boolean dynamicRegistration,
SemanticTokensClientCapabilitiesRequests requests,
java.util.List<java.lang.String> tokenTypes,
java.util.List<java.lang.String> tokenModifiers,
java.util.List<java.lang.String> formats)
@Pure public SemanticTokensClientCapabilitiesRequests getRequests()
public void setRequests(SemanticTokensClientCapabilitiesRequests requests)
@Pure public java.util.List<java.lang.String> getTokenTypes()
See SemanticTokenTypes for allowed values.
public void setTokenTypes(java.util.List<java.lang.String> tokenTypes)
See SemanticTokenTypes for allowed values.
@Pure public java.util.List<java.lang.String> getTokenModifiers()
See SemanticTokenModifiers for allowed values.
public void setTokenModifiers(java.util.List<java.lang.String> tokenModifiers)
See SemanticTokenModifiers for allowed values.
@Pure public java.util.List<java.lang.String> getFormats()
See TokenFormat for allowed values.
public void setFormats(java.util.List<java.lang.String> formats)
See TokenFormat for allowed values.
@Pure public java.lang.Boolean getOverlappingTokenSupport()
Since 3.16.0
public void setOverlappingTokenSupport(java.lang.Boolean overlappingTokenSupport)
Since 3.16.0
@Pure public java.lang.Boolean getMultilineTokenSupport()
Since 3.16.0
public void setMultilineTokenSupport(java.lang.Boolean multilineTokenSupport)
Since 3.16.0
@Pure public java.lang.Boolean getServerCancelSupport()
ResponseErrorCode.ServerCancelled.
If a server does, the client needs to retrigger the request.
Since 3.17.0
public void setServerCancelSupport(java.lang.Boolean serverCancelSupport)
ResponseErrorCode.ServerCancelled.
If a server does, the client needs to retrigger the request.
Since 3.17.0
@Pure public java.lang.Boolean getAugmentsSyntaxTokens()
true client side created syntax
tokens and semantic tokens are both used for colorization. If
set to false the client only uses the returned semantic tokens
for colorization.
If the value is omitted then the client behavior is not specified.
Since 3.17.0
public void setAugmentsSyntaxTokens(java.lang.Boolean augmentsSyntaxTokens)
true client side created syntax
tokens and semantic tokens are both used for colorization. If
set to false the client only uses the returned semantic tokens
for colorization.
If the value is omitted then the client behavior is not specified.
Since 3.17.0
@Pure public java.lang.String toString()
toString in class DynamicRegistrationCapabilities@Pure public boolean equals(java.lang.Object obj)
equals in class DynamicRegistrationCapabilities@Pure public int hashCode()
hashCode in class DynamicRegistrationCapabilities