Issue with Overlapping Line Highlighter and Selection in Editor

Hi,

I’m using the following code to render a highlighter in my editor:

editor.markupModel.addLineHighlighter(getHighlightKey(), lineToHighlight, HighlighterLayer.SELECTION - 1)

However, there’s an issue when both selection and highlighting occur on the same line.

  • If I set the highlighter’s layer below the selection layer, the highlighter isn’t visible when the line is selected.
  • If I set the highlighter’s layer above the selection layer, it covers the selection highlight.

Is there any solution that allows both to be visually noticeable at the same time, perhaps by using some opacity or blending technique?