Skip to content

Commit e842182

Browse files
Merge pull request #16600 from alexeagle/pretty2
Add missing newline in --pretty diagnostics formatter
2 parents 680bfbb + 0123bd0 commit e842182

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/compiler/program.ts

+1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ namespace ts {
332332
const categoryColor = getCategoryFormat(diagnostic.category);
333333
const category = DiagnosticCategory[diagnostic.category].toLowerCase();
334334
output += `${ formatAndReset(category, categoryColor) } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, sys.newLine) }`;
335+
output += sys.newLine;
335336
}
336337
return output;
337338
}

src/compiler/tsc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace ts {
6161
}
6262

6363
function reportDiagnosticWithColorAndContext(diagnostic: Diagnostic, host: FormatDiagnosticsHost): void {
64-
sys.write(ts.formatDiagnosticsWithColorAndContext([diagnostic], host) + sys.newLine + sys.newLine);
64+
sys.write(ts.formatDiagnosticsWithColorAndContext([diagnostic], host) + sys.newLine);
6565
}
6666

6767
function reportWatchDiagnostic(diagnostic: Diagnostic) {

0 commit comments

Comments
 (0)