Eglot could detect off-by-one diagnostics
+++++++++++++++++++++++++++++++
Hard to know the best heuristic, but lots of null effective ranges is
a good one.
Eglot can simply ignore null range diagnostics
+++++++++++++++++++++++++++++++++++
Eglot doesn't need to use `flymake-diag-region' to try to calculate an update range if it encounters a null
diagnostic range. It could simply drop those, as they are probably wrong anyway, and will shortly be updated.
Maybe, IF we can confidently say that the server is in the wrong.
But I added it there for a reason, and quite a long time ago. See the
commit log for
commit 7826b265a0ecd9357719b2fb9491c9bcb517d4cc
Author: João Távora <joaotavora@gmail.com>
Date: Thu Jun 21 23:32:14 2018 +0100
I'm moderately sure someone somewhere expects the botches ranges to be
auto-corrected by Eglot (though admittedly not at the expense of large
delays).