Currently mark decorations don’t show up at all on empty lines because there isn’t any character to wrap in <span>s. Perhaps this is the expected behavior, but I think it’s inappropriate in many scenarios, for example when showing lints about newlines:
The reproduction example shows a lint for each match of /\n+/g. Note that one newline shows as a point widget, which is good, but lint ranges with 2 or more newlines disappear completely. You can still open the tooltip by hovering on the empty line.
Showing a short mark (one character wide, or half of one) on empty lines would be enough. It looks manually implementable with a plugin that transforms mark decorations on empty lines into a widget decoration, but I haven’t tried (I’m new to codemirror and still learning the basics)… Would be great if support for this is built-in
