Skip to content

Adjusted newlines in non-pretty output for consistency#23470

Merged
mhegazy merged 6 commits into
microsoft:masterfrom
JoshuaKGoldberg:standardized-non-pretty-newlines
Apr 20, 2018
Merged

Adjusted newlines in non-pretty output for consistency#23470
mhegazy merged 6 commits into
microsoft:masterfrom
JoshuaKGoldberg:standardized-non-pretty-newlines

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Contributor

Fixes #23469

@mhegazy mhegazy requested a review from sheetalkamat April 17, 2018 17:10
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Apr 17, 2018

@sheetalkamat any comments?

Comment thread src/compiler/watch.ts Outdated
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()} - `;
Copy link
Copy Markdown
Member

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 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sheetalkamat thanks, it does!

Comment thread src/compiler/watch.ts Outdated
@@ -75,7 +75,7 @@ namespace ts {
} :
(diagnostic, newLine, options) => {
clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
Copy link
Copy Markdown
Member

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.

@mhegazy mhegazy merged commit 2826bc7 into microsoft:master Apr 20, 2018
@JoshuaKGoldberg JoshuaKGoldberg deleted the standardized-non-pretty-newlines branch April 20, 2018 17:02
@microsoft microsoft locked and limited conversation to collaborators Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants