You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't remember if there is a reason that we are not adding regions if custom color scheme rule is not defined...
Is it just a minor optimization and it would be fine to always do it? @jwortmann ?
The text was updated successfully, but these errors were encountered:
rchl
changed the title
Customizing style of diagnostics with tags no longer functions in new dev builds
Customizing style of diagnostics with tags no longer works in dev builds
May 13, 2023
I would say this is a non-issue, and everything works as expected :)
We even have an explicit warning about this in the docs:
The color scheme rule only works if the "background" color is different from the global background of the scheme.
You could simply fix the preceding code block example, to follow this advice, for example similar to the code block example in the "Semantic Highlighting" section. That one should work unless the color scheme's background is #000001.
I think the reason to not add it if there's no color scheme rule was only a performance optimization, but I assume if the check for "background" doesn't apply, to add the region would have no effect anyway (?). And another disadvantage of adding the region is, that it removes font_style, though I haven't checked whether this also applies if there's no relevant color scheme rule for it.
Describe the bug
This approach:
LSP/plugin/session_view.py
Lines 298 to 299 in b49da9e
no longer works in current ST dev builds due to this "issue": sublimehq/sublime_text#5942
I don't remember if there is a reason that we are not adding regions if custom color scheme rule is not defined...
Is it just a minor optimization and it would be fine to always do it? @jwortmann ?
The text was updated successfully, but these errors were encountered: