Skip to content

Commit

Permalink
Auto merge of rust-lang#13017 - Veykril:vscode-diag-workaround, r=Vey…
Browse files Browse the repository at this point in the history
…kril

Pad empty diagnostic messages in relatedInformation as well

Follw up to rust-lang/rust-analyzer#13016
  • Loading branch information
bors committed Aug 13, 2022
2 parents bbe5637 + 614969b commit 010f68c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editors/code/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 010f68c

Please sign in to comment.