Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Code Fold Missing Scrollbar Annotation #6385

Closed

Description

@tokafew420

The scrollbar annotation doesn't show a match when used with the code folding addon in the following scenarios:

  • If there is a match on the folded line and there are also matches within the folded content then when the fold is collapsed, we expect at least the match on folded line to be annotated on scrollbar. But it's not.
  • Matches hidden within a collapsed fold are not annotated on the scrollbar.

See Fiddle: https://jsfiddle.net/tokafew420/1exL7kqb/

Expanded
image

Collapsed
image

I guess technically the second scenario is not a bug but rather just how the AnnotateScrollbar addon works however it's not what I was expecting.

I'm looking into a possible solution however I thought I'd create this issue in case there's already a fix for this or if someone has insights into how it can be fixed.

Codemirror: 5.56.0
Broswer: Google Chrome 84.0.4147.125

Activity

  1. tokafew420 commented on Aug 20, 2020

    @tokafew420
    ContributorAuthor

    Closing. Fixed with commit ac4aaa0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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