diagnostics and cursor problem

When using setDiagnostics, it is found that when from and to are the same, the floating box will not be displayed, and the cursor will disappear when moving to this position. What should I do at this time, thank you


I cannot reproduce this. Try setting up a minimal demo in https://codemirror.net/try/.

It is normal for me to run in Try CodeMirror, maybe there is something wrong with the way I use it, please trouble you