Cleanup: fix filename typo, replace AsyncNonKeyedLocker, drop WithIndex(), use ProcessStartInfo ctor arg (#1492)

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot
2026-02-27 14:42:07 +02:00
committed by GitHub
parent 7ff2347df1
commit 21c2398e2a
6 changed files with 11 additions and 16 deletions

View File

@@ -34,7 +34,7 @@
}
<div class="chatlog__message-group">
@foreach (var (message, i) in Messages.WithIndex())
@foreach (var (i, message) in Messages.Index())
{
var isFirst = i == 0;

View File

@@ -173,7 +173,7 @@ internal class PlainTextMessageWriter(Stream stream, ExportContext context)
await _writer.WriteLineAsync("{Reactions}");
foreach (var (reaction, i) in reactions.WithIndex())
foreach (var (i, reaction) in reactions.Index())
{
cancellationToken.ThrowIfCancellationRequested();

View File

@@ -12,16 +12,6 @@ public static class CollectionExtensions
}
}
extension<T>(IEnumerable<T> source)
{
public IEnumerable<(T value, int index)> WithIndex()
{
var i = 0;
foreach (var o in source)
yield return (o, i++);
}
}
extension<T>(IEnumerable<T?> source)
where T : class
{