-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Adjusted newlines in non-pretty output for consistency #23470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjusted newlines in non-pretty output for consistency #23470
Conversation
@sheetalkamat any comments? |
src/compiler/watch.ts
Outdated
system.write(output); | ||
} : | ||
(diagnostic, newLine, options) => { | ||
clearScreenIfNotWatchingForFileChanges(system, diagnostic, options); | ||
let output = new Date().toLocaleTimeString() + " - "; | ||
output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${newLine + newLine + newLine}`; | ||
let output = `${getPlainDiagnosticPrecedingNewLines(diagnostic, newLine)}${new Date().toLocaleTimeString()} - `; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may depend on whether screen was cleared or not as well right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sheetalkamat thanks, it does!
src/compiler/watch.ts
Outdated
@@ -75,7 +75,7 @@ namespace ts { | |||
} : | |||
(diagnostic, newLine, options) => { | |||
clearScreenIfNotWatchingForFileChanges(system, diagnostic, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be let clearScreenIfNotWatchingForFiles
send you the return value if the screen is cleared since it is not cleared in options.extendedDiagostics || options.diagnostics
too.
Fixes #23469