-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
LeadingComments affect breaking #149
Labels
Milestone
Comments
belav
added a commit
that referenced
this issue
May 3, 2021
…th remove initial double hardlines closes #149
There are some more edge cases that need to be handled public class ClassName
{
void Method()
{
var fileContents = File.ReadAllText(file,
// leading here should break parameters
encoding ? GetEncoding(1252) : encoding, cancellationToken);
var fileContents = File.ReadAllText(
file,
// leading here should break parameters and GetEncoding should still group
encoding ? File.GetEncodinggggggggggggggg(
1252
) : encodinggggggggggggggg,
cancellationToken
);
var editorConfig = new Dictionary<string, string>() {
// should break braces correctly
["asdfasdf"] = "none", ["asdf"] = "error", };
}
} |
This was referenced May 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This affects ConstructorDeclarationSyntax and BaseMethodDeclarationSyntax.
IfStatementSyntax was easy to pull out the LeadingTrivia. This was less obvious. But looking at that may help.
Expected Formatting
Actual Formatting
The text was updated successfully, but these errors were encountered: