完善插件下载进度并修复安装超时与取消重试 - #37
Merged
Merged
Conversation
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
插件壁纸下载期间缺少响应体进度,HTTP 超时原先只覆盖获取响应头,可能让安装队列长时间停滞。取消后立即重试、资源缓存校验失败及提交后的广播异常也会导致安装状态失真。
变更
TimeoutError,使安装失败可重试。cache: 'reload'刷新相同摘要 URL,最多重试一次。兼容性与迁移
1,无需迁移。HttpRequestOptions新增可选cache,HttpResponse.bytes()新增可选进度回调,并导出HttpDownloadProgress;现有无参数调用保持兼容。mergeAbortSignals()改为返回{ signal, dispose },所有调用点已同步调整。验证
vp run check:通过,格式、Lint、类型和 Svelte 检查无错误或警告。vp run test:通过,226 个测试文件、1307 项测试;任务同时完成官方插件构建。git diff --check origin/master...HEAD:通过。