|
| 1 | +# 1.2.2 |
| 2 | +## What's Changed |
| 3 | + |
| 4 | +### The null coalescing operator is grouped in an unexpected place [#1769](https://github.com/belav/csharpier/issues/1769) |
| 5 | +Null coalescing is now consistently broken thanks to a contribution from @ogaken-1 |
| 6 | + |
| 7 | +```c# |
| 8 | +// input & expected output |
| 9 | +var x = |
| 10 | + someValue.SomeCall().SomeProperty.SomeProperty |
| 11 | + ?? someValue.SomeCall().SomeProperty.SomeProperty; |
| 12 | + |
| 13 | +var x = |
| 14 | + someValue.SomeCall().SomeProperty?.SomeCall().SomeProperty |
| 15 | + ?? someValue.SomeCall().SomeProperty?.SomeCall().SomeProperty; |
| 16 | + |
| 17 | +var x = |
| 18 | + someValue.SomeCall().A_______.B_______.C_______ |
| 19 | + ?? someValue.SomeCall().A_______.B_______.C_______; |
| 20 | + |
| 21 | +// 1.2.1 |
| 22 | +var x = |
| 23 | + someValue.SomeCall().SomeProperty.SomeProperty ?? someValue |
| 24 | + .SomeCall() |
| 25 | + .SomeProperty.SomeProperty; |
| 26 | + |
| 27 | +var x = |
| 28 | + someValue.SomeCall().SomeProperty?.SomeCall().SomeProperty ?? someValue |
| 29 | + .SomeCall() |
| 30 | + .SomeProperty?.SomeCall() |
| 31 | + .SomeProperty; |
| 32 | + |
| 33 | +var x = |
| 34 | + someValue.SomeCall().A_______.B_______.C_______ ?? someValue |
| 35 | + .SomeCall() |
| 36 | + .A_______.B_______.C_______; |
| 37 | +``` |
| 38 | +### Xml formatter should not add a second line [#1760](https://github.com/belav/csharpier/issues/1760) |
| 39 | +When formatting an xml file with a declaration and extra blank line was being added. |
| 40 | +```xml |
| 41 | +<!-- input & expected output --> |
| 42 | +<?xml version="1.0" encoding="utf-8"?> |
| 43 | + |
| 44 | +<Element /> |
| 45 | + |
| 46 | +<!-- 1.2.1 --> |
| 47 | +<?xml version="1.0" encoding="utf-8"?> |
| 48 | + |
| 49 | + |
| 50 | +<Element /> |
| 51 | +``` |
| 52 | + |
| 53 | +### Git ignore patterns do not work the same as git [#1759](https://github.com/belav/csharpier/issues/1759) |
| 54 | +The handling of ignore patterns did not properly match how git handles them. The logic has been reworked and now has tests that compare it directly to git. |
| 55 | + |
| 56 | +### Fix server crash when launched without console [#1774](https://github.com/belav/csharpier/pull/1774) |
| 57 | +If a plugin launched `csharpier server` without a console it would crash. This has been resolved thanks to @rcdailey |
| 58 | + |
| 59 | +**Full Changelog**: https://github.com/belav/csharpier/compare/1.2.1...1.2.2 |
1 | 60 | # 1.2.1 |
2 | 61 | ## What's Changed |
3 | 62 | ### Multiline comments are now formatted in a single line in XML format [#1747](https://github.com/belav/csharpier/issues/1747) |
@@ -3672,5 +3731,6 @@ Thanks go to @pingzing |
3672 | 3731 |
|
3673 | 3732 |
|
3674 | 3733 |
|
| 3734 | +
|
3675 | 3735 |
|
3676 | 3736 |
|
0 commit comments