Auto merge of #13017 - Veykril:vscode-diag-workaround, r=Veykril
Pad empty diagnostic messages in relatedInformation as well Follw up to https://github.com/rust-lang/rust-analyzer/pull/13016
This commit is contained in:
commit
010f68cacf
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue