microsoft/language-server-protocol

Define a protocol for syntax tokens

Open

#1.063 aberto em 7 de ago. de 2020

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)HTML (956 forks)batch import
help wantedidea

Métricas do repositório

Stars
 (12.810 stars)
Métricas de merge de PR
 (Mesclagem média 19h 29m) (12 fundiu PRs em 30d)

Description

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.

Guia do colaborador