diff --git a/ChangeLog.md b/ChangeLog.md index 60e6c2604c..430c923d0c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix analyzer [RCS1196](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1196) ([PR](https://github.com/dotnet/roslynator/pull/1235)) - Fix analyzer [RCS1257](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1257) ([PR](https://github.com/dotnet/roslynator/pull/1264)) - Fix analyzer [RCS1259](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1259) ([PR](https://github.com/dotnet/roslynator/pull/1268)) -- [CLI] Fix reading of non-existent redirected input on git bash ([PR](https://github.com/dotnet/roslynator/pull/1265), [PR](https://github.com/dotnet/roslynator/pull/1274)) +- [CLI] Fix reading of non-existent redirected input on git bash ([PR](https://github.com/dotnet/roslynator/pull/1265), [PR](https://github.com/dotnet/roslynator/pull/1274), [PR](https://github.com/dotnet/roslynator/pull/1275)) - [CLI] Fix exit code for `roslynator --version` ([PR](https://github.com/dotnet/roslynator/pull/1273)) ## [4.6.2] - 2023-11-10 diff --git a/src/CommandLine/ConsoleHelpers.cs b/src/CommandLine/ConsoleHelpers.cs index eae980c608..ac035487f9 100644 --- a/src/CommandLine/ConsoleHelpers.cs +++ b/src/CommandLine/ConsoleHelpers.cs @@ -27,6 +27,8 @@ public static ImmutableArray ReadRedirectedInputAsLines() if (readLineTask.Result is null) return ImmutableArray.Empty; + lines.Add(readLineTask.Result); + string line; while ((line = streamReader.ReadLine()) is not null)