From 01670147f6f57aefa37b44a88e685355e890bfd5 Mon Sep 17 00:00:00 2001 From: lincube Date: Fri, 1 May 2026 13:59:52 +0800 Subject: [PATCH] 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. --- .arts/settings.json | 4 +- Directory.Packages.props | 52 +++++++++---------- .../Services/ResumableDownloadService.cs | 2 +- .../Services/SentryCrashTelemetryService.cs | 8 ++- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.arts/settings.json b/.arts/settings.json index 701b3b0..e249426 100644 --- a/.arts/settings.json +++ b/.arts/settings.json @@ -1,3 +1,5 @@ { - "diffEditor.renderSideBySide": false + "diffEditor.renderSideBySide": false, + "clawMode.mode": "editor", + "workbench.activityBar.location": "default" } \ No newline at end of file diff --git a/Directory.Packages.props b/Directory.Packages.props index d5a50d7..aa56451 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,40 +3,40 @@ true - + - - - + + + - - + + - - + + - + - - - - - - - - - - + + + + + + + + + + - - - - + + + + - - - + + + \ No newline at end of file diff --git a/LanMountainDesktop/Services/ResumableDownloadService.cs b/LanMountainDesktop/Services/ResumableDownloadService.cs index c267d84..4238926 100644 --- a/LanMountainDesktop/Services/ResumableDownloadService.cs +++ b/LanMountainDesktop/Services/ResumableDownloadService.cs @@ -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" diff --git a/LanMountainDesktop/Services/SentryCrashTelemetryService.cs b/LanMountainDesktop/Services/SentryCrashTelemetryService.cs index 9aac45e..c2b7ac8 100644 --- a/LanMountainDesktop/Services/SentryCrashTelemetryService.cs +++ b/LanMountainDesktop/Services/SentryCrashTelemetryService.cs @@ -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"); } } }