class

LSProtocol::SemanticTokens

Inherits JSON::Serializable / Reference / Object

@since 3.16.0

Constructors

new(pull : JSON::PullParser)
Source
new(data : Array(UInt32) | Nil, result_id : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

The actual tokens.

Source
result_id

An optional result id. If provided and clients support delta updating the client will include the result id in the next semantic token request. A server can then instead of computing all semantic tokens again simply send a delta.

Source