From dbae6ab3821ee6adcbc4db4eceaa9122019ae12a Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Thu, 31 Oct 2024 10:43:57 -0700 Subject: [PATCH] Fix: Change DAP send/receive glyph to keep things aligned in the logs (#5076) --- src/features/DebugSession.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/DebugSession.ts b/src/features/DebugSession.ts index 17b8fb9831..f9e4feae07 100644 --- a/src/features/DebugSession.ts +++ b/src/features/DebugSession.ts @@ -643,7 +643,7 @@ class PowerShellDebugAdapterTrackerFactory implements DebugAdapterTrackerFactory onWillStopSession: () => this.log?.info(`Stopping ${sessionInfo}`), onExit: code => this.log?.info(`${sessionInfo} exited with code ${code}`), onWillReceiveMessage: (m): void => { - this.log?.debug(`▶️${m.seq} ${m.type}: ${m.command}`); + this.log?.debug(`➡️${m.seq} ${m.type}: ${m.command}`); if (m.arguments && (Array.isArray(m.arguments) ? m.arguments.length > 0 : Object.keys(m.arguments).length > 0)) { this.log?.trace(`${m.seq}: ` + JSON.stringify(m.arguments, undefined, 2)); } @@ -651,7 +651,7 @@ class PowerShellDebugAdapterTrackerFactory implements DebugAdapterTrackerFactory onDidSendMessage: (m):void => { const responseSummary = m.request_seq !== undefined ? `${m.success ? "✅" : "❌"}${m.request_seq} ${m.type}(${m.seq}): ${m.command}` - : `◀️${m.seq} ${m.type}: ${m.event ?? m.command}`; + : `⬅️${m.seq} ${m.type}: ${m.event ?? m.command}`; this.log?.debug( responseSummary );