Skip to content

Improve diagnostic messages printed to console #2381

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
merged 1 commit into from
Jul 22, 2022
Merged

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jul 22, 2022

Tackles a few issues with diagnostic messages printed to console, plus making them a bit more pretty.

  • Strip leading whitespace
  • Account for tabs (use two spaces)
  • Limit output to contents of first line so inner newlines don't break the formatting

image

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@MaxGraey
Copy link
Member

Here is my console:
console

@dcodeIO dcodeIO merged commit a584906 into main Jul 22, 2022
@HerrCai0907 HerrCai0907 deleted the prettier-diagnostics branch October 17, 2023 08:59
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.

2 participants