Skip to content

Commit

Permalink
Pad empty diagnostic messages in relatedInformation as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Aug 13, 2022
1 parent ec8256d commit 614969b
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 614969b

Please sign in to comment.