Just to preface this, I am loving the new update for CodeMirror.
We’re trying to move our editor from Monaco to CodeMirror 6, and one of the features that caught my eye was the Search feature; in particular, it works really great, but as we scroll down a larger document, it doesn’t highlight additional matches. For example, take a look at this sandbox I spun up. Here are the directions to replicate the issue I had:
- Search for the word
- Scroll down to roughly line 247 (without any keystrokes), where we have another instance of the word
functionwithout any highlighting.
I would implement this myself, but I’m not too sure about the best design practices. I can create a PR, if you’d like, and we can go from there.