mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-06 04:35:21 -05:00
Simplified to one output line
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user