phindle / error-lens

Visual Studio Code extension which enhances the display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=PhilHindle.errorlens
MIT License
89 stars 40 forks source link

Combining messageBackgroundMode line and message into a new mode where both styles are applied at once #52

Open CodingMarkus opened 10 months ago

CodingMarkus commented 10 months ago

If messageBackgroundMode is line, then ...BackgroundLight or ...Background is applied to the entire line.

If messageBackgroundMode is message, then ...MessageBackground is appplied to the message background.

I would love to have both applied at the same time, so the entire line is highlighted, e.g. with a rather faint color, while the message background is highlighted as well, but with a much stronger color, to make the message itself more readable.

This is what Xcode does by default:

Screenshot 2023-11-12 at 01 55 27

Actually the same color is applied to the message background and line background in Xcode, its just that the line background has a lot of alpha, while the message background is opaque.

The new mode could be named line + message, although I'm not really sure why ...MessageBackground is not always applied by line as well, as it has the same color and thus this wouldn't even make any difference, unless you customize colors and in that case you could again customize them to the same color.