sublimelsp / LSP-css

CSS, SCSS, LESS support for Sublime's LSP plugin
MIT License
37 stars 0 forks source link

How to get this server to understand ST's `var(--greenish)` etc? #14

Closed rwols closed 1 year ago

rwols commented 4 years ago

When doing CSS for plugin development the best choice of colors are the var(--greenish) and var(--redish) etc, because they will match the user's color scheme. However this server doesn't display color boxes for those colors.

rchl commented 4 years ago

These are ST specific variables. The server has no way of knowing they exist.

rwols commented 4 years ago

Perhaps we can deduce the RGB colors and send them in the workspace/didChangeConfiguration notification. The server can then lookup var colors that it cannot deduce just from the file.

rchl commented 4 years ago

But this server can't even understand css variables, it seems: Screenshot 2020-06-07 at 14 23 08

predragnikolic commented 2 years ago

There is nothing that can be done in the LSP-css repo to achieve this, this feature should be opened at css language server repo.

predragnikolic commented 1 year ago

Feel free to open a feature request at the server repo. I will close this as there is nothing that this plugin can do about it.