We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fd63c commit 93e785cCopy full SHA for 93e785c
vscode/src/debugger.ts
@@ -347,10 +347,12 @@ export class Debugger
347
}
348
349
private logDebuggerMessage(message: string) {
350
- const trimmedMessage = message.trimEnd();
351
- if (trimmedMessage.length > 0) {
352
- LOG_CHANNEL.info(`[debugger]: ${trimmedMessage}`);
353
- this.console.append(trimmedMessage);
354
- }
+ // In the Output panel, each log automatically gets a new line
+ // And trailing newlines will create one additional line in the panel, so we trimEnd() here to avoid that
+ LOG_CHANNEL.info(`[debugger]: ${message.trimEnd()}`);
+
+ // In the Debug Console, output doesn't get a new line automatically, so we don't trimEnd() here as well as print
355
+ // the newlines too
356
+ this.console.append(message);
357
358
0 commit comments