Skip to content

[Diagnostics formatter] Consistently apply diagnostic kinds #1374

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

Merged

Conversation

DougGregor
Copy link
Member

Address two issues regarding the diagnostic type indicators in formatted diagnostics.

  1. When colors were disabled, we wouldn't get any of the diagnostic type indicators because the "colorize" check came too early. Make sure they're consistently applied whether colorized or not.
  2. There was no "note:" prefix, so it wasn't clear which things were notes.

…ning/error)

Address two issues regarding the diagnostic type indicators in
formatted diagnostics.

1. When colors were disabled, we wouldn't get any of the diagnostic
type indicators because the "colorize" check came too early. Make sure
they're consistently applied whether colorized or not.
2. There was no "note:" prefix, so it wasn't clear which things were
notes.
@DougGregor DougGregor requested a review from ahoppen as a code owner March 1, 2023 17:39
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 5594b98 into swiftlang:main Mar 2, 2023
@DougGregor DougGregor deleted the diagnostics-formatter-diag-kinds branch March 2, 2023 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant