Skip to content

Commit d1a66de

Browse files
committed
Fix some glyphs
1 parent 8a46532 commit d1a66de

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/features/DebugSession.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,22 +626,23 @@ class PowerShellDebugAdapterTrackerFactory implements DebugAdapterTrackerFactory
626626
return this._log;
627627
}
628628

629+
// This tracker effectively implements the logging for the debug adapter to a LogOutputChannel
629630
createDebugAdapterTracker(session: DebugSession): DebugAdapterTracker {
630631
const sessionInfo = `${this.adapterName} Debug Session: ${session.name} [${session.id}]`;
631632
return {
632633
onWillStartSession: () => this.log?.info(`Starting ${sessionInfo}. Set log level to trace to see DAP messages beyond errors`),
633634
onWillStopSession: () => this.log?.info(`Stopping ${sessionInfo}`),
634635
onExit: code => this.log?.info(`${sessionInfo} exited with code ${code}`),
635636
onWillReceiveMessage: (m): void => {
636-
this.log?.debug(`${m.seq} ${m.type}: ${m.command}`);
637+
this.log?.debug(`${m.seq} ${m.type}: ${m.command}`);
637638
if (m.arguments && (Array.isArray(m.arguments) ? m.arguments.length > 0 : Object.keys(m.arguments).length > 0)) {
638639
this.log?.trace(`${m.seq}: ` + JSON.stringify(m.arguments, undefined, 2));
639640
}
640641
},
641642
onDidSendMessage: (m):void => {
642643
const responseSummary = m.request_seq !== undefined
643644
? `${m.success ? "✅" : "❌"}${m.request_seq} ${m.type}(${m.seq}): ${m.command}`
644-
: `${m.seq} ${m.type}: ${m.event ?? m.command}`;
645+
: `${m.seq} ${m.type}: ${m.event ?? m.command}`;
645646
this.log?.debug(
646647
responseSummary
647648
);

src/logging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export function LspTraceParser(message: string): [string, LogLevel] {
274274
level = LogLevel.Trace;
275275
}
276276

277-
// These are PSES messages we don't really need to see so we drop these to trace
277+
// These are PSES messages that get logged to the output channel anyways so we drop these to trace for easy noise filtering
278278
if (parsedMessage.startsWith("⬅️ notification 'window/logMessage'")) {
279279
level = LogLevel.Trace;
280280
}

0 commit comments

Comments
 (0)