Open thery opened 2 weeks ago
I think the range stuff was not invalidated since the document is not. The code did detect that the texts parses to the same token list, so no need to recompute. But since the new text is different in length/number-of-lines, the highlighting state needs to be invalidated hence recomputed.
The colors did not move at all, this is why I'm giving this analysis of the bug.
Here is my example
if I execute everything
if I try to break the line after ![ddd2](https://github.com/coq-community/vscoq/assets/6795190/1b5f0d4c-210c-4784-a5ff-9a8e6782aa74)
HE;
The interface goes into an inconsistent state