Skip to content

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
Contributor

@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
Contributor

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
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.

EOF newline not added

3 participants