CSharpier v0.19.0 Release Notes

  • What's Changed

    ➕ Adding a cache to speed up formatting. #692

    CSharpier now caches information about files that it has formatted to speed up subsequent runs.
    0️⃣ By default the following are used as cache keys and a file is only formatted if one of them has changed.

    • CSharpier Version
    • CSharpier Options
    • Content of the file

    The cache is stored at [LocalApplicationData]/CSharpier/.formattingCache.

    Ignore node_modules #699

    CSharpier now ignores any files within a node_modules folder.

    Thanks go to @RichiCoder1 for the suggestion and @SubjectAlpha for the implementation.

    Extra space before curly brace in array initializer #693

    // 0.18.0
    public class ClassName
    {
        public int[] SomeArray { get; set; } =  { 1, 2, 3 };
    }
    // 0.19.0
    public class MyClass
    {
        public int[] SomeArray { get; set; } = { 1, 2, 3 };
    }
    
    

    Thanks go to @TiraelSedai for reporting the bug.

    Full Changelog: https://github.com/belav/csharpier/compare/0.18.0...0.19.0