microsoft/language-server-protocol

Define a protocol for syntax tokens

Aperta

#1063 aperta il 7 ago 2020

 (7 commenti) (0 reazioni) (0 assegnatari)HTML (956 fork)batch import
help wantedidea

Metriche repository

Star
 (12.810 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Is my reading correct, that semantic tokens only add additional information to tokens? Can we trust that the clients will render keywords correctly, if they already have a syntax highlighter (frequently regexp based).

If that's the case, should there be an option to "unset" a type. Just as an example, if you have #ifdefs you could think of giving the LSP server the option of removing syntax coloring from inactive code segments by giving it the token-type None.

Guida contributor