Fix new eglot test failure due to project cache

* test/lisp/progmodes/eglot-tests.el
(eglot-test-project-wide-diagnostics-rust-analyzer):
Bind project-vc-non-essential-cache-timeout to 0 so that the
result of project-current is refreshed (bug#80387).
This commit is contained in:
Dmitry Gutov 2026-02-13 05:19:58 +02:00
parent 1e6d4f827c
commit f1fe4d4619

View file

@ -1017,7 +1017,8 @@ int main() {
"fn main() -> i32 { return 42.2;}")
("other-file.rs" .
"fn foo() -> () { let hi=3; }"))))
(let ((eglot-server-programs '((rust-mode . ("rust-analyzer")))))
(let ((eglot-server-programs '((rust-mode . ("rust-analyzer"))))
(project-vc-non-essential-cache-timeout 0))
;; Open other-file.rs, and see diagnostics arrive for main.rs,
;; which we didn't open.
(with-current-buffer (eglot--find-file-noselect "project/other-file.rs")