question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Two color previews showing under certain conditions

See original GitHub issue

Description

Build 4112 on Windows 10 x64, regular installer. Latest version of ColorHelper. 2 monitors, not sure if that impacts issue. I’m using a slightly modified version of the SoDaReloaded Dark theme, and my Neon Color Scheme.

support info window

The project I currently have open in my main window (there’s another window just for SublimeREPL) is split into 2 panes, so I’m viewing 2 files at the same time, one of them being a .sublime-color-scheme. The other one varies, but it doesn’t have colors in it from CH. When I start up Sublime with the color scheme pane focused (or focus it quickly before the plugin loads), CH displays normally:

normal view

However, if I start up with the other pane focused, when CH loads it shows 2 color previews, the one on the right clickable like normal, the one on the left not:

double color previews

This is the same if I scroll down through the file and more colors are rendered as they come into view.

I also see this behavior when I click to another .sublime-color-scheme file in a different tab, regardless of whether the startup tab has single or double previews. So, in other words, I start up, the file in view has its previews generated (either single or double, depending on focus), then I click to another tab with a different color scheme, and it always generates double previews.

Now, interestingly, I tested this with a random CSS file, and it only generates single previews, regardless of whether it’s focused or not during startup, tab visible or not. I wonder if this behavior is specific to color schemes. I don’t have examples of other files with colors in them, but if you have any ideas for other file types to try, I can find some online.

Finally, I scanned through all the startup messages and couldn’t find any errors related to CH. If there’s a debug mode, let me know and I can enable it. Let me know if you need any other info.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
facelessusercommented, Sep 6, 2021

@MattDMo, Finally have a solution:

Screen Shot 2021-09-06 at 10 16 27 AM

Go to Preferences -> Package Settings -> LSP -> Servers -> LSP-JSON and add this:

// Settings in here override those in "LSP-json/LSP-json.sublime-settings"

{
    "disabled_capabilities": {
        // the trigger characters are too blunt, we'll specify auto_complete_selector manually
        "completionProvider": {
            "triggerCharacters": true
        },
        "colorProvider": true
    }
}
1reaction
facelessusercommented, Sep 1, 2021

I am fairly certain this is not a ColorHelper issue. The secondary color previews seem to have a border that is a slightly different color than the color they represent. We have no code anywhere that would create borders like that.

@MattDMo I will wait for your confirmation, but it is very unlikely that this is not a ColorHelper issue. As things stand now, I think this is a wontfix as there is nothing for us to fix.

@gir-bot remove S: triage, S: more-info-needed @gir-bot add S: wontfix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use conditional formatting to highlight information
How to use conditional formatting in Excel to visually explore, analyze, and identify patterns and trends. ... Format cells by using a two-color...
Read more >
Multiple color previews #139432 - microsoft/vscode - GitHub
I have multiple color previews everytime I'm working on a .css, .scss, .vue file in the style block. At the moment I have...
Read more >
Use conditional formatting rules in Google Sheets - Computer
Under "Formatting style, choose what the cell will look like when conditions are met. Color scale: Under "Preview," select the color scale. Then,...
Read more >
Excel Conditional Formatting tutorial with examples - Ablebits
Excel conditional formatting is a really powerful feature when it comes to applying different formats to data that meets certain conditions.
Read more >
Excel Conditional Formatting Examples, Videos - Contextures
The following examples show how to highlight cells based on thier content. 1 -- Colour Cells Based on 2 Conditions. 2 -- Highlight...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found