eclipse-lsp4j / lsp4j

A Java implementation of the language server protocol intended to be consumed by tools and language servers implemented in Java.

Home Page:https://eclipse.org/lsp4j

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are there any examples of color provider?

javaduke opened this issue · 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.