Skip to content

Commit 010f68c

Browse files
committed
Auto merge of #13017 - Veykril:vscode-diag-workaround, r=Veykril
Pad empty diagnostic messages in relatedInformation as well Follw up to #13016
2 parents bbe5637 + 614969b commit 010f68c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

editors/code/src/client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ export async function createClient(
111111
if (!diagnostic.message) {
112112
diagnostic.message = " ";
113113
}
114+
if (diagnostic.relatedInformation) {
115+
for (const relatedInformation of diagnostic.relatedInformation) {
116+
if (!relatedInformation.message) {
117+
relatedInformation.message = " ";
118+
}
119+
}
120+
}
114121
}
115122
next(uri, diagnostics);
116123
},

0 commit comments

Comments
 (0)