]> git.eshelyaron.com Git - emacs.git/commit
Eglot: improve diagnostic-reporting performance
authorJoão Távora <joaotavora@gmail.com>
Tue, 29 Apr 2025 11:20:51 +0000 (12:20 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 1 May 2025 05:39:54 +0000 (07:39 +0200)
commit2fe00e6356f887773869549f99bb251ae30eab54
treefc8cf6054515ba4c939c7b37626779816f8a08dd
parent578e271411a858405e98851513ca0e215fb12ac4
Eglot: improve diagnostic-reporting performance

After a change in the buffer has occured, it is often the case
that Flymake is quicker to ask for diagnostics than the server
is to supply them to us.  If we're still stuck with old outdated
diagnostics, don't forward them to Flymake, even if it eagerly
asks us for them.

* etc/EGLOT-NEWS (Changes in upcoming Eglot): Announce changes.

* lisp/progmodes/eglot.el
(eglot--diagnostics): Rework.
(eglot--report-to-flymake): Also take version.
(eglot-handle-notification textDocument/publishDiagnostics)
(eglot--managed-mode)
(eglot-flymake-backend): Tweak call to eglot--report-to-flymake.

(cherry picked from commit 7ae275f04c46e1724fafd8c8aa2f3eed5771df1c)
etc/EGLOT-NEWS
lisp/progmodes/eglot.el