Hello,When I use two extensions at the same time, one for keyword highlighting and the other for bracket segmentation and highlighting, there seems to be a conflict. When I delete the brackets after using them, an error message will appear. What should I do? I also tried to merge it into a ViewPlugin, but how to merge DecorationSet has become my problem, and it seems that it cannot achieve a separate effect. Here is my code:
Extensions should compose without issues, especially if they only add decoration. If you can reduce this to a minimal script that runs on codemirror.net/try, I’ll see if I can find the problem.
This happens as well with just one MatchDecorator
extension. It was a regression in @codemirror/view 6.36.0 caused by a fix that made the code take a path it accidentally never took before, and that path having another bug. This patch (in 6.36.1) should fix it.
2 Likes
I have updated the latest dependency and it is fine now. Thank you very much