microsoft/language-server-protocol

Define a protocol for syntax tokens

Open

#1.063 geöffnet am 7. Aug. 2020

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (956 Forks)batch import
help wantedidea

Repository-Metriken

Stars
 (12.810 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 19h 29m) (12 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide