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

0.24.0. csharpier-ignore on property causes blank lines between statements to be removed. #879

Closed
Pentadome opened this issue Apr 26, 2023 · 1 comment · Fixed by #880
Closed
Milestone

Comments

@Pentadome
Copy link

private string? _example;

// csharpier-ignore
public string Example
{
  get
     {
       if (_example is not null)
         return _example;

       var number = Random.Shared.Next();

       return _example = number.ToString();
     }
}

becomes.

private string? _example;

// csharpier-ignore
public string Example
{
  get
     {
       if (_example is not null)
         return _example;
       var number = Random.Shared.Next();
       return _example = number.ToString();
     }
}

This only happens when // csharpier-ignore is above the property.

@Pentadome Pentadome changed the title 0.24.0. csharpier-ignore on property causes blank lines between statements to get removed. 0.24.0. csharpier-ignore on property causes blank lines between statements to be removed. Apr 26, 2023
@belav belav added this to the 0.24.1 milestone Apr 26, 2023
@belav
Copy link
Owner

belav commented Apr 26, 2023

Sorry about that, I'll have the fix out shortly!

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 a pull request may close this issue.

2 participants