Encodes a list of SemanticTokenData into the LSP semantic tokens format.
Encodes a list of semantic tokens into a flat list of integers according to the LSP semantic tokens format. The encoding format is as follows: