mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Pad empty diagnostic messages in relatedInformation as well
This commit is contained in:
parent
ec8256dd80
commit
614969baa7
1 changed files with 7 additions and 0 deletions
|
@ -111,6 +111,13 @@ export async function createClient(
|
|||
if (!diagnostic.message) {
|
||||
diagnostic.message = " ";
|
||||
}
|
||||
if (diagnostic.relatedInformation) {
|
||||
for (const relatedInformation of diagnostic.relatedInformation) {
|
||||
if (!relatedInformation.message) {
|
||||
relatedInformation.message = " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
next(uri, diagnostics);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue