Filter out supporting diagnostics that contain no messages

This commit is contained in:
Antonio Scandurra 2022-01-27 09:51:15 +01:00
parent 2749001477
commit 3e4fe09d00

View file

@ -912,7 +912,7 @@ impl Project {
});
if let Some(infos) = &diagnostic.related_information {
for info in infos {
if info.location.uri == params.uri {
if info.location.uri == params.uri && !info.message.is_empty() {
let range = range_from_lsp(info.location.range);
diagnostics.push(DiagnosticEntry {
range,