|
1 | | -# 0.27.0 |
| 1 | +# 0.27.1 |
| 2 | +## What's Changed |
| 3 | +### Support for CSharp Script [#1141](https://github.com/belav/csharpier/issues/1141) |
| 4 | +Previously CSharpier would only format files matching `*.cs` which prevented it from formatting C# script files. It now formats `*.{cs,csx}` |
| 5 | + |
| 6 | +Thanks go to @Eptagone for the suggestion |
| 7 | +### Weird formatting of invocation chain [#1130](https://github.com/belav/csharpier/issues/1130) |
| 8 | +Invocation chains that started with an identifier <= 4 characters were causing a strange break in the first method call. There were other edge cases cleaned up while working on the fix. |
| 9 | + |
| 10 | +```c# |
| 11 | +// 0.27.0 |
| 12 | +var something________________________________________ = x.SomeProperty.CallMethod( |
| 13 | + longParameter_____________, |
| 14 | + longParameter_____________ |
| 15 | +) |
| 16 | + .CallMethod(); |
| 17 | + |
| 18 | +// 0.27.1 |
| 19 | +var something________________________________________ = x |
| 20 | + .SomeProperty.CallMethod(longParameter_____________, longParameter_____________) |
| 21 | + .CallMethod(); |
| 22 | +``` |
| 23 | + |
| 24 | +```c# |
| 25 | +// 0.27.0 |
| 26 | +var someLongValue_________________ = memberAccessExpression[ |
| 27 | + elementAccessExpression |
| 28 | +].theMember______________________________(); |
| 29 | + |
| 30 | +// 0.27.1 |
| 31 | +var someLongValue_________________ = memberAccessExpression[elementAccessExpression] |
| 32 | + .theMember______________________________(); |
| 33 | +``` |
| 34 | + |
| 35 | +```c# |
| 36 | +// 0.27.0 |
| 37 | +someThing_______________________ |
| 38 | + ?.Property |
| 39 | + .CallMethod__________________() |
| 40 | + .CallMethod__________________(); |
| 41 | + |
| 42 | +// 0.27.1 |
| 43 | +someThing_______________________ |
| 44 | + ?.Property.CallMethod__________________() |
| 45 | + .CallMethod__________________(); |
| 46 | +``` |
| 47 | + |
| 48 | +Thanks go to @Rudomitori for reporting the issue |
| 49 | +### "Failed syntax tree validation" for raw string literals [#1129](https://github.com/belav/csharpier/issues/1129) |
| 50 | +When an interpolated raw string changed indentation due to CSharpier formatting, CSharpier was incorrectly reporting it as failing syntax tree validation. |
| 51 | +```c# |
| 52 | +// input |
| 53 | +CallMethod(CallMethod( |
| 54 | + $$""" |
| 55 | + SomeString |
| 56 | + """, someValue)); |
| 57 | + |
| 58 | +// output |
| 59 | +CallMethod( |
| 60 | + CallMethod( |
| 61 | + $$""" |
| 62 | + SomeString |
| 63 | + """, |
| 64 | + someValue |
| 65 | + ) |
| 66 | +); |
| 67 | +``` |
| 68 | +Thanks go to @Rudomitori for reporting the issue |
| 69 | + |
| 70 | +### Adding experimental support using HTTP for the extensions to communicate with CSharpier [#1137](https://github.com/belav/csharpier/pull/1137) |
| 71 | +The GRPC support added in 0.27.0 increased the size of the nuget package significantly and has been removed. |
| 72 | + |
| 73 | +CSharpier can now start a kestrel web server to support communication with the extensions once they are all updated. |
| 74 | + |
| 75 | +**Full Changelog**: https://github.com/belav/csharpier/compare/0.27.0...0.27.1 |
| 76 | +# 0.27.0 |
2 | 77 | ## What's Changed |
3 | 78 | ### Improve formatting of lambda expressions [#1066](https://github.com/belav/csharpier/pull/1066) |
4 | 79 | Many thanks go to @Rudomitori for contributing a number of improvements to the formatting of lambda expressions. |
@@ -1977,3 +2052,4 @@ Thanks go to @pingzing |
1977 | 2052 |
|
1978 | 2053 |
|
1979 | 2054 |
|
| 2055 | +
|
0 commit comments