use getNewLine from host rather than sys

This commit is contained in:
Alex Eagle 2016-07-13 15:25:15 -07:00
parent 23f4be9643
commit 62f49c3b7e

View file

@ -1003,7 +1003,7 @@ namespace ts {
}
const category = DiagnosticCategory[diagnostic.category].toLowerCase();
output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, sys.newLine) }${ sys.newLine }`;
output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) }${ host.getNewLine() }`;
}
return output;
}