Skip to content

Option 'hideFirstIndent' does not work when activeΒ #31

@larsyr

Description

@larsyr

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions