use getNewLine from host rather than sys

This commit is contained in:
Alex Eagle
2016-07-13 15:25:15 -07:00
parent e28acd3c1f
commit 05fbe7cddd
+1 -1
View File
@@ -1009,7 +1009,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;
}