Skip to content

fix: show a friendly dialog when SDK download is cancelled - #312

Open
tonycoder-hub wants to merge 2 commits into
ohosvscode:nextfrom
tonycoder-hub:cursor/fix-cancel-download-dialog-d92d
Open

fix: show a friendly dialog when SDK download is cancelled#312
tonycoder-hub wants to merge 2 commits into
ohosvscode:nextfrom
tonycoder-hub:cursor/fix-cancel-download-dialog-d92d

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Fixes issue 64.
After the HTTP stream starts, abort was wrapped as DownloadError, so cancel looked like a failed download and SHA256/extract could continue.
Detect cancel, show sdk.install.cancelled, stop the install pipeline. lint and 52 tests passed.

cursoragent and others added 2 commits August 17, 2026 21:16
Treat abort/cancel errors from sdk-downloader as cancellation instead of
showing the raw "下载错误" toast, and stop the install pipeline so SHA256
and extract do not continue after cancel.

Co-authored-by: Tony Coder <407243179@qq.com>
Satisfy regexp/no-unused-capturing-group from eslint.

Co-authored-by: Tony Coder <407243179@qq.com>
@changeset-bot

changeset-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ab1e1b9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vscode-naily-ets Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants