Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #20429 from ShoyuVanilla/master
hotfix: Update flycheck diagnostics generation
Lukas Wirth 9 months ago
parent 16ef2a4 · parent 0a72e9f · commit 3d2c40d
-rw-r--r--crates/rust-analyzer/src/diagnostics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/diagnostics.rs b/crates/rust-analyzer/src/diagnostics.rs
index cd7c632d10..2711bdba69 100644
--- a/crates/rust-analyzer/src/diagnostics.rs
+++ b/crates/rust-analyzer/src/diagnostics.rs
@@ -134,6 +134,7 @@ impl DiagnosticCollection {
if self.check[flycheck_id].generation > generation {
return;
}
+ self.check[flycheck_id].generation = generation;
let diagnostics = self.check[flycheck_id]
.per_package
.entry(package_id.clone())