Merge pull request #9704 from alexeagle/master

use getNewLine from host rather than sys
This commit is contained in:
Mohamed Hegazy authored and GitHub committed 2016-07-13 16:52:41 -07:00
commit d7e17aaf76
1 file changed
+1 -1
+1 -1
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;
}