Skip to content

Add NewLine option support to formatter#2417

Merged
mattwar merged 2 commits intodotnet:masterfrom
mattwar:Bug202
May 1, 2015
Merged

Add NewLine option support to formatter#2417
mattwar merged 2 commits intodotnet:masterfrom
mattwar:Bug202

Conversation

@mattwar
Copy link
Contributor

@mattwar mattwar commented Apr 30, 2015

Fixes #202

@basoundr @Pilchie @heejaechang please review

@basoundr
Copy link
Contributor

basoundr commented May 1, 2015

The change as such looks good. There are some complex cases. For eg, in CurlyBraceCompletionSession, which returns NewLine.

We might also have to replace those instances with what the user desires. This is just one example. There will be more cases.

@mattwar
Copy link
Contributor Author

mattwar commented May 1, 2015

My change does not add any new formatter behavior. It just changes the kinds of new lines it adds, when it adds them.

@mattwar
Copy link
Contributor Author

mattwar commented May 1, 2015

@basoundr .. The caller is not expected to do trivia replacement. That's just the test forcing the new lines to be added. Normally only specific conditions, like alignment, cause the formatter to add new lines. For VB, it never does unless there is elastic trivia.

@heejaechang
Copy link
Contributor

👍

@Pilchie
Copy link
Member

Pilchie commented May 1, 2015

👍 from me too, once the test failures are figured out.

mattwar added a commit that referenced this pull request May 1, 2015
Add NewLine option support to formatter
@mattwar mattwar merged commit aae1ded into dotnet:master May 1, 2015
@mattwar mattwar deleted the Bug202 branch August 29, 2016 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatter ignores NewLine option

5 participants