Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added final newline formatter #133

Merged
merged 2 commits into from
May 24, 2019

Conversation

JoeRobich
Copy link
Member

Adds a new formatter for the insert_final_newline editorconfig option.

Closes #111

Copy link
Contributor

@jmarolf jmarolf left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Member

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

❓ Why are we not adding these as rules to the whitespace formatter in Roslyn?

@JoeRobich
Copy link
Member Author

@sharwell I had assumed that we were letting the Editor handle some of these core .editorconfig options. I can add it there instead.

@sharwell
Copy link
Member

sharwell commented May 8, 2019

Not all options would apply there, but it seems these two would.

@JoeRobich JoeRobich marked this pull request as ready for review May 24, 2019 17:15
@JoeRobich
Copy link
Member Author

@sharwell I see that Roslyn already has an issue to support final newline in the formatter (dotnet/roslyn#33468). Going to merge this and we can remove when the functionality is implemented in Roslyn.

@JoeRobich JoeRobich merged commit c7082d5 into dotnet:master May 24, 2019
@JoeRobich JoeRobich deleted the add-final-newline-formatter branch March 5, 2021 21:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EOF newline not added
3 participants