Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
`char.IsAsciiHexDigit`, which is available on both shipped target frameworks and reads
as the intent. The two `TestConsole` instances in `SplashScreenTests` are now disposed
via `using` (`cs/local-not-disposed`); `TestConsole` is `IDisposable` and both were
leaking. No behaviour, public API or rendered output changed.
leaking. The `Width(120)` call is now a separate statement rather than chained into the
`using` initializer, so the `using` binds directly to the constructed console — CodeQL
cannot prove a fluent method returns its receiver, so the chained form left the
construction flagged as undisposed. No behaviour, public API or rendered output changed.

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public void Show_writes_to_AnsiConsole()
public void Show_with_custom_tagline_emits_it()
{
var prev = AnsiConsole.Console;
using var test = new TestConsole().Width(120);
using var test = new TestConsole();
test.Width(120);
AnsiConsole.Console = test;
try
{
Expand Down