From a97a09c0fcb2c7916491d7ee950c76040a2c0ee3 Mon Sep 17 00:00:00 2001 From: glen2223 <33450392+glenn2223@users.noreply.github.com> Date: Wed, 16 Oct 2024 01:14:58 +0100 Subject: [PATCH] Update OutputWindow.ts --- src/VsCode/OutputWindow.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/VsCode/OutputWindow.ts b/src/VsCode/OutputWindow.ts index 26a60b6..3151515 100644 --- a/src/VsCode/OutputWindow.ts +++ b/src/VsCode/OutputWindow.ts @@ -1,11 +1,7 @@ -import { - OutputChannel, - window -} from "vscode"; +import { OutputChannel, window } from "vscode"; import { SettingsHelper } from "../Helpers/SettingsHelper"; import { OutputLevel } from "../Enums/OutputLevel"; - export class OutputWindow { private static _msgChannel: OutputChannel; @@ -26,24 +22,29 @@ export class OutputWindow { ): void { const userLogLevel = SettingsHelper.getOutputLogLevel(); - if (outputLevel >= userLogLevel || - outputLevel === OutputLevel.Critical) { + if ( + outputLevel >= userLogLevel || + outputLevel === OutputLevel.Critical + ) { OutputWindow.MsgChannel.show(true); } if (outputLevel >= userLogLevel || outputLevel > OutputLevel.Debug) { if (msgHeadline) { OutputWindow.MsgChannel.appendLine(msgHeadline); + console.log(msgHeadline); } if (msgBody) { msgBody.forEach((msg) => { OutputWindow.MsgChannel.appendLine(msg); + console.log(msg); }); } if (addEndLine) { OutputWindow.MsgChannel.appendLine("--------------------"); + console.log("--------------------"); } } }