Skip to content

fix: rebase 11-update-use-github-release patch onto VS Code 1.124.0#13

Closed
claude[bot] wants to merge 1 commit into
mainfrom
fix/issue-12-win32-patch-1.124.0
Closed

fix: rebase 11-update-use-github-release patch onto VS Code 1.124.0#13
claude[bot] wants to merge 1 commit into
mainfrom
fix/issue-12-win32-patch-1.124.0

Conversation

@claude

@claude claude Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Root Cause

VS Code 1.124.0 significantly restructured doApplyUpdate in updateService.win32.ts:

The spawn block was moved inside an else { } branch guarded by a new mutex-based isInstallerActive() check (added to prevent duplicate Inno Setup instances). This changed:

  • All spawn-related lines gained one extra tab of indentation
  • A blank line was added between await pfs.Promises.writeFile(...) and const child = spawn(...)

Patch hunk #11 (@@ -357,20 ...) was searching for the old 2-tab-indented context without the blank line, which no longer exists in 1.124.0. --ignore-whitespace doesn't bridge blank lines, causing the patch rejection.

Fix

Regenerated the entire updateService.win32.ts section of 11-update-use-github-release.patch from the 1.124.0 base so the MSI/Setup spawn conditional lands correctly inside the existing } else { block with 3-tab indentation and the blank-line context.

Also bumps upstream/stable.json from 1.123.0 → 1.124.0 so the PR build targets the same upstream commit the patch is written against (PR builds use the pinned version, not upstream-latest).

Verification

cd vscode && git fetch --depth 1 origin 1b50d58d73426c9171299ec4037d01365d995b78 && git checkout FETCH_HEAD
git apply --check --ignore-whitespace ../patches/11-update-use-github-release.patch
# Exit: 0

Refs #12

VS Code 1.124.0 restructured doApplyUpdate in updateService.win32.ts:
moved the spawn() block inside an else { } branch guarded by a new
mutex-based isInstallerActive() check, adding one tab of indentation
and a blank line before const child = spawn().

Hunk #11 of the patch was searching for the old 2-tab-indented context
without the blank line — no longer present in 1.124.0 — causing a
patch rejection.

Fix: regenerate the win32.ts section of the patch from the 1.124.0
base so the spawn MSI/Setup conditional lands inside the existing
else { } block with correct 3-tab indentation and blank-line context.

Also bump upstream/stable.json to 1.124.0 so the PR build targets
the same upstream commit the patch is written against.
@sbs44 sbs44 closed this Jun 12, 2026
@sbs44 sbs44 deleted the fix/issue-12-win32-patch-1.124.0 branch June 12, 2026 19:54
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.

1 participant