Skip to content

Commit

Permalink
Don't log black text
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Sep 4, 2019
1 parent 7edb8b1 commit 6a7d6ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/base/common/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export function log(entry: IRemoteConsoleLog, label: string): void {
// First arg is a string
if (typeof args[0] === 'string') {
if (topFrame && isOneStringArg) {
consoleArgs = [`%c[${label}] %c${args[0]} %c${topFrame}`, color('blue'), color('black'), color('grey')];
consoleArgs = [`%c[${label}] %c${args[0]} %c${topFrame}`, color('blue'), color(''), color('grey')];
} else {
consoleArgs = [`%c[${label}] %c${args[0]}`, color('blue'), color('black'), ...args.slice(1)];
consoleArgs = [`%c[${label}] %c${args[0]}`, color('blue'), color(''), ...args.slice(1)];
}
}

Expand All @@ -139,4 +139,4 @@ export function log(entry: IRemoteConsoleLog, label: string): void {

function color(color: string): string {
return `color: ${color}`;
}
}

0 comments on commit 6a7d6ea

Please sign in to comment.