ccls icon indicating copy to clipboard operation
ccls copied to clipboard

First attempt to include the semantic highlight feature, introduced in specification 3.16.0.

Open jlahoda opened this issue 3 years ago • 2 comments

This is a crude attempt to include semantic highlights introduced in LSP spec 3.16.0: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens

It is mostly copied src/message_handler.cc#emitSemanticHighlight, with some tweaks. Feedback is welcome!

jlahoda avatar Dec 25 '20 12:12 jlahoda

Thanks! I guess the specification is probably a bit unfortunate, since the payload may be much larger than the ccls extension...

MaskRay avatar Dec 26 '20 20:12 MaskRay

I've been using this branch today and it looks like it works all right (at least, for starters… I didn't see any obvious errors or problems)

@MaskRay is there any documentation of how to handle the missing TODOs? (I didn't seem to run to any of these errors, btw)

FelipeLema avatar Apr 06 '21 22:04 FelipeLema