Bump packages; fix resume flag & Sentry attach

Update workspace settings and dependency versions, plus small service fixes. .arts/settings.json adds editor clawMode and activityBar location. Directory.Packages.props upgrades many packages (e.g. Avalonia to 12.0.2, CommunityToolkit.Mvvm, Downloader, Sentry to 6.4.1, Microsoft.* previews, and more). ResumableDownloadService renamed ResumeDownloadIfCan to EnableAutoResumeDownload. SentryCrashTelemetryService now adds the log-tail as an attachment via scope.AddAttachment(byte[], name, contentType) instead of creating an Attachment object.
This commit is contained in:
lincube
2026-05-01 13:59:52 +08:00
parent 0348324fa3
commit 01670147f6
4 changed files with 33 additions and 33 deletions

View File

@@ -292,7 +292,7 @@ public sealed class ResumableDownloadService
ParallelDownload = useParallelDownload,
MinimumSizeOfChunking = options.ParallelThresholdBytes,
MaxTryAgainOnFailure = 3,
ResumeDownloadIfCan = true,
EnableAutoResumeDownload = true,
ClearPackageOnCompletionWithFailure = false,
FileExistPolicy = FileExistPolicy.Delete,
DownloadFileExtension = ".part"

View File

@@ -337,12 +337,10 @@ public sealed class SentryCrashTelemetryService : IDisposable
{
scope.SetExtra("log_tail", logTail);
scope.SetExtra("log_tail_line_count", logTail.Count(character => character == '\n') + 1);
var attachment = new Attachment(
AttachmentType.Default,
new ByteAttachmentContent(Encoding.UTF8.GetBytes(logTail)),
scope.AddAttachment(
Encoding.UTF8.GetBytes(logTail),
"log-tail.txt",
"text/plain");
scope.AddAttachment(attachment);
contentType: "text/plain");
}
}
}