mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
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:
parent
1e6d4f827c
commit
f1fe4d4619
1 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue