mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Pad empty diagnostic messages in relatedInformation as well
This commit is contained in:
parent
ec8256dd80
commit
614969baa7
@ -111,6 +111,13 @@ export async function createClient(
|
|||||||
if (!diagnostic.message) {
|
if (!diagnostic.message) {
|
||||||
diagnostic.message = " ";
|
diagnostic.message = " ";
|
||||||
}
|
}
|
||||||
|
if (diagnostic.relatedInformation) {
|
||||||
|
for (const relatedInformation of diagnostic.relatedInformation) {
|
||||||
|
if (!relatedInformation.message) {
|
||||||
|
relatedInformation.message = " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
next(uri, diagnostics);
|
next(uri, diagnostics);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user