I wanted to check here whether a PR would be accepted to export the
endOperation methods on CodeMirror instances. I know about the option to call
operation(callback), but sometimes I have groups of editor changes that happen with short timeouts, or in the same stack but in some way that I can’t “capture” all the parts in a callback. (This happens, for example, in React applications, where multiple child components make changes to the editor in a single render cycle, but application code can’t wrap the rendering of a subtree because of inversion of control.
If CodeMirror would accept such a PR (or some other way to allow asynchronous operations that only redraw at the end), I’d be very happy to be the one to write it up.