Simplified to one output line

This commit is contained in:
Josh Goldberg
2018-04-19 21:54:08 -07:00
parent 8d6c2bc1b1
commit 351251193d

View File

@@ -74,11 +74,15 @@ namespace ts {
system.write(output);
} :
(diagnostic, newLine, options) => {
let output = "";
if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
system.write(newLine);
output += newLine;
}
let output = `${new Date().toLocaleTimeString()} - `;
output += `${new Date().toLocaleTimeString()} - `;
output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${getPlainDiagnosticFollowingNewLines(diagnostic, newLine)}`;
system.write(output);
};
}