facelessuser / ColorHelper

Sublime plugin that provides helpful color previews and tooltips
https://facelessuser.github.io/ColorHelper/
MIT License
254 stars 30 forks source link

Bugs with LSP-CSS and LESS files #262

Closed Amparose closed 4 months ago

Amparose commented 4 months ago

With only these packages installed:

"installed_packages":
[
    "ColorHelper",
    "Less",
    "LSP",
    "LSP-css",
    "Package Control",
],

I get two colour hints in CSS files that open different modals: CleanShot 2024-04-12 at 14 43 01@2x

In .less files, only one of the hints (unfortunately the less useful one) appears: CleanShot 2024-04-12 at 14 53 55@2x

If I disable/remove LSP-CSS, then the hint and popup work as expected in a CSS file but not at all in a LESS file.

Support Info

facelessuser commented 4 months ago

LSP provides its own color previews. If you only want one, you have to disable one. It seems you are here because you want ColorHelper previews, so I would check the LSP packages documentation or reach out the LSP-CSS author to find out how to disable the color previews.

This issue has arisen with other LSP providers, such as JSON. In that case, I tracked down how to disable it. Maybe LSP-CSS is similar: https://github.com/facelessuser/ColorHelper/issues/190#issuecomment-913755314.