From 676fd4eba00c759702400b02b206356021243724 Mon Sep 17 00:00:00 2001 From: Hex Date: Sun, 12 May 2024 11:02:41 +0300 Subject: [PATCH] [diag] remove extra newline in warning messages previously a newline is suffixed to the parsed warning/error message. in recent version of vscode this does not affect presentation of the message. --- src/features/diagnostics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/diagnostics.ts b/src/features/diagnostics.ts index fb05fea..9dd6ace 100644 --- a/src/features/diagnostics.ts +++ b/src/features/diagnostics.ts @@ -105,7 +105,7 @@ function parseMessages(messages: string[]): while (messages.length > 0 && messages[0].startsWith(' ')) { msgs.push(messages.shift().substr(4)); } - const msg = msgs.join('\n') + (msgs.length ? '\n' : ''); + const msg = msgs.join('\n'); const severity: vscode.DiagnosticSeverity = (() => { if (res_error !== null) {