Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/client.ts')
-rw-r--r--editors/code/src/client.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 8a2dea6b35..27ab31db8d 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -105,6 +105,22 @@ export async function createClient(
traceOutputChannel: traceOutputChannel(),
outputChannel: outputChannel(),
middleware: {
+ async handleDiagnostics(uri, diagnostics, next) {
+ // Workaround for https://github.com/microsoft/vscode/issues/155531
+ for (const diagnostic of diagnostics) {
+ if (!diagnostic.message) {
+ diagnostic.message = " ";
+ }
+ if (diagnostic.relatedInformation) {
+ for (const relatedInformation of diagnostic.relatedInformation) {
+ if (!relatedInformation.message) {
+ relatedInformation.message = " ";
+ }
+ }
+ }
+ }
+ next(uri, diagnostics);
+ },
async provideHover(
document: vscode.TextDocument,
position: vscode.Position,