]> git.eshelyaron.com Git - emacs.git/commit
Eglot: fix setting of flymake-list-only-diagnostics (bug#59824)
authorJoão Távora <joaotavora@gmail.com>
Wed, 7 Dec 2022 11:30:34 +0000 (11:30 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 7 Dec 2022 11:30:45 +0000 (11:30 +0000)
commitbfc00f1c12047ff431eaa9da3a744807c3f9e6e2
tree5957e96690d67db53b8acbaad19f9aa02d16c30b
parentd2411615e8bcfb2536f0a0da87869d751eee7892
Eglot: fix setting of flymake-list-only-diagnostics (bug#59824)

When Eglot receives diagnostics for a file not yet visited in Emacs,
it stores them in flymake-list-only-diagnostics, which feed M-x
flymake-show-project-diagnostics.  If the file is eventually visited
in a buffer and Eglot starts receibing diagnostics for it, the
flymake-list-only-diagnostics database has to be updated accordingly,
since the previous diagnostics are now stale.

* lisp/progmodes/eglot.el (eglot-handle-notification): Reset
flymake-list-only-diagnostics
lisp/progmodes/eglot.el