eclipse-lsp4j/lsp4j

Are there any examples of color provider?

javaduke opened this issue · 3 comments

I'm working on implementing a language server using LSP4J for a custom language, and I couldn't find any example of how to create a color provider. I understand I have to have res.getCapabilities().setColorProvider(Boolean.TRUE); but then it's not quite clear to me what information should I return in documentColor method. Any example or tutorial would help.

Perfect, exactly what I was looking for.