codemirror-indentation-markers icon indicating copy to clipboard operation
codemirror-indentation-markers copied to clipboard

Option 'hideFirstIndent' does not work when active

Open larsyr opened this issue 1 year ago • 0 comments

Hey, I am using your amazing CodeMirror Extension but found a little bug.

When I set the "hideFirstIndent" property to "true", the first indentation marker is still shown if the element is 'active'. I suspect this is a bug and not a feature. If itis a feature, it would be nice to have a option like 'hideFirstIndentActive' to disable it.

Example: CodeMirrorFirstIndentationMarkNotHidden

My code/config:

indentationMarkers({
    highlightActiveBlock: true,
    hideFirstIndent: true,
    markerType: "fullScope",
    thickness: 1,
    activeThickness: 2,
    colors: {
      activeLight: "#f00",
    }
  }),

Extra details: I use CodeMirror 6 and the XML language.

It is a minor, non-breaking bug, But I would love to see a solution!

larsyr avatar Aug 29 '24 12:08 larsyr