We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb9fba commit ee8d7a7Copy full SHA for ee8d7a7
crates/rust-analyzer/src/diagnostics/to_proto.rs
@@ -319,6 +319,10 @@ pub(crate) fn map_rust_diagnostic_to_lsp(
319
message: "original diagnostic".to_string(),
320
};
321
for info in &related_information {
322
+ // Filter out empty/non-existent messages, as they greatly confuse VS Code.
323
+ if info.message.is_empty() {
324
+ continue;
325
+ }
326
diagnostics.push(MappedRustDiagnostic {
327
url: info.location.uri.clone(),
328
fixes: fixes.clone(), // share fixes to make them easier to apply
0 commit comments