Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added final newline formatter - #133

#133
Merged
JoeRobich merged 2 commits into
dotnet:masterdotnet/format:masterfrom
JoeRobich:add-final-newline-formatterJoeRobich/format:add-final-newline-formatterCopy head branch name to clipboard
May 24, 2019
Merged

Added final newline formatter#133
JoeRobich merged 2 commits into
dotnet:masterdotnet/format:masterfrom
JoeRobich:add-final-newline-formatterJoeRobich/format:add-final-newline-formatterCopy head branch name to clipboard

Conversation

@JoeRobich

Copy link
Copy Markdown
Member

Adds a new formatter for the insert_final_newline editorconfig option.

Closes #111

@jmarolf jmarolf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@sharwell sharwell left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread src/Formatters/EOFNewlineFormatter.cs Outdated
@JoeRobich

Copy link
Copy Markdown
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

sharwell commented May 8, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.