code-butler icon indicating copy to clipboard operation
code-butler copied to clipboard

Using statements inside namespace block cause incorrect formatting

Open humphs opened this issue 5 years ago • 2 comments

This code should be enough to reproduce. Running Code Butler inside VS Code

namespace Test
{
    using System.Threading.Tasks;

    public interface ITest
    {
        Task Test();
    }
}

Run: Code Butler: Cleanup C# file

File is formatted to:

namespace Test
{
    using System.Threading.Tasks;
    public interface ITest
    {
        Task Test();
    }
}

The newline between the using statements and the interface is removed incorrectly.

humphs avatar Jan 26 '21 18:01 humphs

Thank you for using Code Butler and opening this issue.

I will fix this bug and release a new version as soon as I can.

just-seba avatar Jan 30 '21 12:01 just-seba

Should be fixed with release of version 1.2.0 Please let me know if there is anything else I can improve.

just-seba avatar Jan 31 '21 18:01 just-seba