Skip to content

Commit 4316fe8

Browse files
authored
release 1.2.2 (#1775)
1 parent ada2305 commit 4316fe8

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
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
160
# 1.2.1
261
## What's Changed
362
### 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
36723731
36733732
36743733
3734+
36753735
36763736

Nuget/Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.2.1</Version>
3+
<Version>1.2.2</Version>
44
<PackageLicenseExpression>MIT</PackageLicenseExpression>
55
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
66
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)