Skip to content

Commit 62f49c3

Browse files
committed
use getNewLine from host rather than sys
1 parent 23f4be9 commit 62f49c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ namespace ts {
10031003
}
10041004

10051005
const category = DiagnosticCategory[diagnostic.category].toLowerCase();
1006-
output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, sys.newLine) }${ sys.newLine }`;
1006+
output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) }${ host.getNewLine() }`;
10071007
}
10081008
return output;
10091009
}

0 commit comments

Comments
 (0)