jupyterlab-lsp icon indicating copy to clipboard operation
jupyterlab-lsp copied to clipboard

Add color-picker capabilities

Open krassowski opened this issue 4 years ago • 1 comments

Elevator Pitch

LSP specifies a colour support capability which can be implemented as a textDocument/documentColor request. Quite a few language servers (CSS/R) support it well already.

Motivation

This is very useful for CSS, but also for plot tuning in data science area (right colours make the visualisations much better!).

Design Ideas

The easylogic/codemirror-colorpicker makes it easy to implement the colour picker in the CodeMirror editor (which is what we already use). It can look like this:

image

This can be implemented as a new CodeMirror adapter feature, see: /packages/jupyterlab-lsp/src/adapters/codemirror/features

krassowski avatar Jun 07 '20 14:06 krassowski