update lockStderrWriter sites

use the application's Io implementation where possible. This correctly
makes writing to stderr cancelable, fallible, and participate in the
application's event loop. It also removes one more hard-coded
dependency on a secondary Io implementation.
This commit is contained in:
Andrew Kelley
2025-12-12 19:04:35 -08:00
parent ec56696503
commit 1925e0319f
32 changed files with 346 additions and 248 deletions
+1 -1
View File
@@ -764,7 +764,7 @@ fn appendTreeSymbol(symbol: TreeSymbol, buf: []u8, start_i: usize) usize {
}
}
pub fn clearWrittenWithEscapeCodes(file_writer: *Io.File.Writer) anyerror!void {
pub fn clearWrittenWithEscapeCodes(file_writer: *Io.File.Writer) Io.Writer.Error!void {
if (noop_impl or !global_progress.need_clear) return;
try file_writer.writeAllUnescaped(clear ++ progress_remove);
global_progress.need_clear = false;