Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #17824 - ShoyuVanilla:fix-diags, r=Veykril
fix: Native diagnostics not working This should be a `continue` now _Originally posted by `@Veykril` in https://github.com/rust-lang/rust-analyzer/pull/17775#discussion_r1706845633_ I've tested the release compile output with IDE in the original PR, but my test workspace had only one `.rs` file 🤦 😢
bors 2024-08-07
parent 0e282fc · parent ec0f00f · commit 9f69ed3
-rw-r--r--crates/rust-analyzer/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/diagnostics.rs b/crates/rust-analyzer/src/diagnostics.rs
index b99a8de2fc..034c49c3d5 100644
--- a/crates/rust-analyzer/src/diagnostics.rs
+++ b/crates/rust-analyzer/src/diagnostics.rs
@@ -110,7 +110,7 @@ impl DiagnosticCollection {
})
{
// don't signal an update if the diagnostics are the same
- return;
+ continue;
}
if *old_gen < generation || generation == 0 {
target.insert(file_id, (generation, diagnostics));