Skip to content

fix(patches): rebase 9 patches for VS Code 1.132.0 - #38

Merged
sbs44 merged 3 commits into
mainfrom
fix/1.132.0-rebase
Aug 8, 2026
Merged

fix(patches): rebase 9 patches for VS Code 1.132.0#38
sbs44 merged 3 commits into
mainfrom
fix/1.132.0-rebase

Conversation

@sbs44

@sbs44 sbs44 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Upstream drift 1.126.0 → 1.132.0 broke 10 of 36 patches (12-update-add-cooldown was cascade-only). Notable ports beyond context re-rolls:

  • 11-update-use-github-release: merged upstream's mid-check cancellation machinery (checkCancellationTokenSource) and collectGarbage/getWin32UpdateType refactors with the GitHub-release update flow.
  • 21-policy-use-custom-lib: CopilotManagedSettingsService was renamed upstream to NativeManagedSettingsService; re-ported the @vscodium/policy-watcher vendor-name adapter there.
  • 51-ext-copilot-remove-it: upstream added new @github/copilot-sdk consumers; shimmed type-only imports (GitHubTelemetryNotification, SectionOverride, SessionEvent, SessionFs*, CopilotClient) and deleted three tests that import SDK runtime values or removed modules.

Pins upstream/stable.json at 1.132.0 (df53daab).

Also bumps .nvmrc to 24.18.0 (upstream's preinstall now requires >= 24.18.0) and fixes 10 tsgo typecheck errors found by a local build of the patched tree.

Refs #37
Closes #37

sbs44 added 3 commits August 8, 2026 04:12
Upstream drift 1.126.0 → 1.132.0 broke 10 of 36 patches (12-update-add-cooldown
was cascade-only). Notable ports beyond context re-rolls:

- 11-update-use-github-release: merged upstream's mid-check cancellation
  machinery (checkCancellationTokenSource) and collectGarbage/getWin32UpdateType
  refactors with the GitHub-release update flow.
- 21-policy-use-custom-lib: CopilotManagedSettingsService was renamed upstream
  to NativeManagedSettingsService; re-ported the @vscodium/policy-watcher
  vendor-name adapter there.
- 51-ext-copilot-remove-it: upstream added new @github/copilot-sdk consumers;
  shimmed type-only imports (GitHubTelemetryNotification, SectionOverride,
  SessionEvent, SessionFs*, CopilotClient) and deleted three tests that import
  SDK runtime values or removed modules.

Pins upstream/stable.json at 1.132.0 (df53daab).
Caught by a local build's compile-src typecheck (tsgo), which CI would have
hit the same way:

- Keep copilotTokenFields.ts (import-free) and copilotSystemNotification.ts
  (type-only SDK imports, now shimmed) instead of deleting them — new 1.132.0
  code in copilotApiService.ts and mapSessionEvents.ts imports both.
- sessionCustomizationDiscovery: tsgo infers unknown (not any) through
  raceCancellationError for Promise<any>, so the CopilotClient shim now models
  concrete result shapes ({ paths }, { agents }, { sources }, { skills }).
- SessionEventPayload aliases are generic (used as SessionEventPayload<'...'>).
- softAssertNever(kind as never) — any is not assignable to never under tsgo.

src/tsconfig.json now typechecks clean against the full patched tree.
Upstream's build/npm/preinstall.ts now requires Node >= 24.18.0; matches
upstream's own .nvmrc at the pinned commit.
@sbs44
sbs44 merged commit 685161d into main Aug 8, 2026
5 of 6 checks passed
@sbs44
sbs44 deleted the fix/1.132.0-rebase branch August 8, 2026 15:01
@bradford-tech bradford-tech deleted a comment from claude Bot Aug 8, 2026
@bradford-tech bradford-tech deleted a comment from claude Bot Aug 8, 2026
@bradford-tech bradford-tech deleted a comment from claude Bot Aug 8, 2026
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.

Build failure: vscode 1.132.0 (run 31086322305)

1 participant