Skip to content
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

If file has no preprocessor symbols, only format it once #560

Merged
merged 3 commits into from
Jan 22, 2022
Merged

Conversation

belav
Copy link
Owner

@belav belav commented Jan 20, 2022

closes #555

@@ -38,7 +38,7 @@ public async Task Should_Format_Basic_File(string lineEnding)
var formattedContent = "public class ClassName { }" + lineEnding;
var unformattedContent = $"public class ClassName {{{lineEnding}{lineEnding}}}";

await WriteFileAsync("BasicFile.cs", unformattedContent);
await this.WriteFileAsync("BasicFile.cs", unformattedContent);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you want to always prepend this., that's fine, but could you change all of them in a single PR?
Littering the changes all over the place makes it hard to review.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah sorry, I went ahead and merged it - #562

@belav belav merged commit 934b85a into master Jan 22, 2022
@belav belav deleted the optimize branch January 22, 2022 15:31
@belav belav added this to the 0.14.0 milestone Feb 6, 2022
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.

File with no preprocessor symbols formats twice.
2 participants