Pad empty diagnostic messages in relatedInformation as well

This commit is contained in:
Lukas Wirth 2022-08-13 20:49:00 +02:00
parent ec8256dd80
commit 614969baa7

View file

@ -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);
},