Support semantic highlight, introduced in specification 3.16.0
Should this be closed now that semantic highlighting has been added, or is there still work to be done?
As far as I can tell, CCLS's current semantic highlighting support is not part of the LSP spec. That's what this PR is for - to add support for the actual LSP semantic tokens spec.
My editor only supports the LSP spec version of semantic highlighting, so I can't use it at all until this is merged. Unless I want to get my hands dirty and build from source...
It merges successfully and works! (Tested with Emacs and lsp-mode.)
However, the buffer must be changed to see the effects.
It merges successfully and works...
... but not well. There are several problems:
textDocument/semanticToken/rangedoesn't work with multi-line ranges.- Returns tokens for a old version of the file in question (maybe a version from its cache).
- It declares that
textDocument/semanticToken/full/deltais supported, but the method is unusable astextDocument/semanticToken/fulldoesn't give aresultId.