File tree Expand file tree Collapse file tree 2 files changed +52
-2
lines changed
Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Original file line number Diff line number Diff line change 1- # 0.30.1
1+ # 0.30.2
2+ ## What's Changed
3+ ### Collection expression inside a dictionary adds unexpected new line [ #1390 ] ( https://github.com/belav/csharpier/issues/1390 )
4+ ``` c#
5+ // input & expected output
6+ Dictionary < string , string []> dictionary = new ()
7+ {
8+ {
9+ " Key" ,
10+ [
11+ " SomeValue__________________________________________" ,
12+ " SomeValue__________________________________________" ,
13+ ]
14+ },
15+ };
16+
17+ // 0.30.1
18+ Dictionary < string , string []> dictionary = new ()
19+ {
20+ {
21+ " Key" ,
22+
23+ [
24+ " SomeValue__________________________________________" ,
25+ " SomeValue__________________________________________" ,
26+ ]
27+ },
28+ };
29+ ```
30+ ### Failed syntax tree validation reported when trailing comma added before a trailing comment [ #1388 ] ( https://github.com/belav/csharpier/issues/1388 )
31+ With the following code, CSharpier will add a trailing comma before the trailing comment.
32+ CSharpier's syntax tree validation was incorrectly reporting this as a failure.
33+ ``` c#
34+ // input
35+ var someObject = new SomeObject ()
36+ {
37+ Property1 = 1 ,
38+ Property2 = 2 // Trailing Comment
39+ };
40+
41+ // output
42+ var someObject = new SomeObject ()
43+ {
44+ Property1 = 1 ,
45+ Property2 = 2 , // Trailing Comment
46+ };
47+ ```
48+
49+ ** Full Changelog** : https://github.com/belav/csharpier/compare/0.30.1...0.30.2
50+ # 0.30.1
251## What's Changed
352Revert tool command back to ` dotnet-csharpier ` , it was supposed to be changed to ` csharpier ` for 1.0.0
453
@@ -2767,4 +2816,5 @@ Thanks go to @pingzing
27672816
27682817
27692818
2819+
27702820
Original file line number Diff line number Diff line change 11<Project >
22 <PropertyGroup >
3- <Version >0.30.1 </Version >
3+ <Version >0.30.2 </Version >
44 <PackageLicenseExpression >MIT</PackageLicenseExpression >
55 <RepositoryUrl >https://github.com/belav/csharpier</RepositoryUrl >
66 <RepositoryType >git</RepositoryType >
You can’t perform that action at this time.
0 commit comments