diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 153e4506ea9..3d63edddac1 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -332,6 +332,7 @@ namespace ts { const categoryColor = getCategoryFormat(diagnostic.category); const category = DiagnosticCategory[diagnostic.category].toLowerCase(); output += `${ formatAndReset(category, categoryColor) } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, sys.newLine) }`; + output += sys.newLine; } return output; } diff --git a/src/compiler/tsc.ts b/src/compiler/tsc.ts index 6e0aefd99a0..8cc2e5c5ef6 100644 --- a/src/compiler/tsc.ts +++ b/src/compiler/tsc.ts @@ -61,7 +61,7 @@ namespace ts { } function reportDiagnosticWithColorAndContext(diagnostic: Diagnostic, host: FormatDiagnosticsHost): void { - sys.write(ts.formatDiagnosticsWithColorAndContext([diagnostic], host) + sys.newLine + sys.newLine); + sys.write(ts.formatDiagnosticsWithColorAndContext([diagnostic], host) + sys.newLine); } function reportWatchDiagnostic(diagnostic: Diagnostic) {