Repository navigation
chore: update to Electron 43 - #332935
chore: update to Electron 43#332935
Conversation
There was a problem hiding this comment.
Pull request overview
Updates VS Code to Electron 43.4.1, adapting removed APIs and addressing Linux integration regressions.
Changes:
- Updates Electron/Chromium metadata, checksums, and build tooling.
- Migrates protocol handlers and dialog behavior for Electron 43.
- Adjusts Linux desktop identity and native title-bar control spacing.
Show a summary per file
| File | Description |
|---|---|
.npmrc |
Selects Electron 43.4.1. |
build/azure-pipelines/linux/setup-env.sh |
Updates Chromium toolchain references. |
build/builtin/main.js |
Removes obsolete WebSQL preference. |
build/checksums/electron.txt |
Replaces Electron artifact checksums. |
build/gulpfile.vscode.linux.ts |
Generates reverse-DNS Linux desktop assets. |
build/linux/dependencies-generator.ts |
Updates Chromium dependency reference. |
cgmanifest.json |
Records Electron and Chromium upgrades. |
product.json |
Defines the Linux desktop identifier. |
resources/linux/code.desktop |
Aligns StartupWMClass with desktop identity. |
resources/linux/rpm/code.spec.template |
Packages renamed desktop metadata. |
src/main.ts |
Configures Electron’s Linux desktop name. |
src/vs/base/common/product.ts |
Exposes the desktop-name product field. |
src/vs/code/electron-main/app.ts |
Migrates remote-resource protocols. |
src/vs/platform/protocol/electron-main/protocolMainService.ts |
Migrates file protocol handling. |
src/vs/platform/windows/electron-main/windows.ts |
Removes obsolete WebSQL preference. |
src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css |
Adds side-specific Linux WCO spacing. |
src/vs/workbench/browser/parts/titlebar/titlebarPart.ts |
Creates two-sided WCO spacers. |
src/vs/workbench/services/dialogs/electron-browser/fileDialogService.ts |
Supplies native-dialog default paths. |
src/vs/workbench/services/dialogs/test/electron-browser/fileDialogService.test.ts |
Tests native-dialog defaults. |
test/unit/electron/index.js |
Migrates the test resource protocol. |
Review details
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 20/20 changed files
- Comments generated: 4
- Review effort level: Balanced
09260a4 to
cfc70ea
Compare
|
Base:
|
faec9c1 to
d7e2f25
Compare
|
Could this update move to Electron 43.6.0 (released 2026-09-04) rather than 43.4.1? 43.6.0 is the first 43.x release that contains the Chromium accessibility fix backported in electron/electron#53428 (https://crbug.com/423048796): Evidence and background in #319725. Blind developers are currently unable to use VS Code with a Braille display on macOS because of this, so picking up 43.6.0 here would fix it directly. |
d7e2f25 to
1c33dbf
Compare
|
Robin Kipp (@robin24) thanks for sharing, I am tracking the issue and we will update to the version containing the fix once our builds are ready. |
c596eb3 to
f03d22a
Compare
Give DEB and RPM installs a package owned reverse DNS desktop name so runtime wayland portal identity resolves to an installed desktop file. Keep snap and archive runtime identities aligned with their distribution specific desktop file behavior. Set StartupWMClass to the same identity used by the runtime.
Reserve both left and right WCO safe areas so custom title bar content does not overlap controls when the desktop environment places them on either side.
Electron 43 defaults native dialogs without a defaultPath to the Downloads directory instead of allowing the platform to retain its last location. Resolve existing file or folder history before invoking native open and save dialogs, while preserving an explicit caller-provided URI.
Replace deprecated registerFileProtocol, registerBufferProtocol, registerHttpProtocol, and interceptFileProtocol APIs with protocol.handle().
The exploration update channel serves an outdated agent host server that does not include the bundled Copilot CLI, causing the smoke test to time out.
f03d22a to
f836851
Compare
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Kyle Cutler (@kycutler)Matched files:
Joaquín Ruales (@jruales)Matched files:
Benjamin Christopher Simmonds (@benibenj)Matched files:
|
The v0.0.86 release build failed in two unrelated places, and v0.0.87 fails the same way. This PR fixes both. It also stops the Linux DEB from shipping with upstream's desktop identity. ## Linux RPM packaging VS Code 1.139.0 (microsoft/vscode#332935, the Electron 43 update) added `product.linuxDesktopName`. Upstream now names the installed Linux files after it: - `<linuxDesktopName>.desktop` - `<linuxDesktopName>.UrlHandler.desktop` - `<linuxDesktopName>.appdata.xml` Hucode's overlay RPM spec still copied `%{name}.desktop`, so `rpmbuild %install` failed on x64, arm64, and armhf: ``` cp: cannot stat 'usr/share/applications/hucode.desktop': No such file or directory ``` The DEB built, but the Hucode overlay did not set `linuxDesktopName`, so it inherited upstream's `com.visualstudio.CodeOSS`. That DEB would have installed `com.visualstudio.CodeOSS.desktop`, which collides with a Code - OSS install. The app would also have used that name as its desktop identity through `app.setDesktopName()`. Changes: - Set `linuxDesktopName` to `dev.hucode.app`. This matches the existing macOS bundle ID, Windows AppUserModelID, embedder ID, and AppStream component ID. - Move the overlay RPM spec to `@@DESKTOP_NAME@@` paths in both `%install` and `%files`. - Set the desktop entry's `StartupWMClass` to `@@DESKTOP_NAME@@`, as upstream does. Point the AppStream `launchable` at `dev.hucode.app.desktop`. - `hucode:validate` now asserts the generated `linuxDesktopName`, the `StartupWMClass` placeholder, and the AppStream launchable. - A new `hucodeLinuxPackaging` test checks that the desktop and appdata paths in the overlay spec match upstream's spec. Upstream keeps its spec in sync with the gulp packaging task, so a future rename fails in CI instead of in a release. User-visible effect: DEB and RPM installs now provide `dev.hucode.app.desktop` instead of `hucode.desktop`. Launchers pinned to the old entry need to be pinned again after upgrading. ## Windows arm64 dependency install The `windows-11-arm` runner label used to run the `windows-11-arm64` image, which has Visual Studio 2022. v0.0.86 got `windows-11-vs2026-arm64` instead, and that image has Visual Studio 2026 under `Microsoft Visual Studio\18\Enterprise`. `build/npm/preinstall.ts` only looks for `2022` and `2019` directories, so `npm ci` failed with "Invalid C/C++ Compiler Toolchain" on every retry. Upstream `main` has the same check. `preinstall.ts` now accepts Visual Studio 2026 through its `18` directory or a `vs2026_install` override. npm's bundled node-gyp already detects Visual Studio 2026 for the native module builds, and the image includes the ARM64 Spectre runtimes. The patch is recorded in `upstream-provenance.json` with `lastSyncedBaseline: 1.139.1`. The drift check then flags the upgrade where upstream changes this file, so we can drop the patch once upstream supports Visual Studio 2026. ## Testing - `npm run test-build-scripts`: 693 tests pass. The new spec test fails against the previous overlay spec at the desktop-file assertion. - `npm run hucode:prepare` and `npm run hucode:validate` pass, and the merged product now resolves `linuxDesktopName` to `dev.hucode.app`. - `cd build && npm run typecheck` and `npm run hucode:check-upstream-provenance` pass. - The edited `preinstall.ts` ran during a Linux `npm install`. Nothing here exercises its Windows branch locally. A release workflow run on this branch will verify the win32-arm64 install and the Linux RPM packaging. --- _Written on behalf of jimeh by `claude-opus-5-5` using Claude Code._ 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/jimeh/hucode/pull/232?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. --> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Fixes #331466
Fixes #332131
Fixes #327088
Fixes #251777
Fixes #319725
Additionally reverts ba2a3ee for system fontconfig initialization issue in favor of the fix in the runtime electron/electron@673915b, fyi Alexandru Dima (@alexdima) Alex Ross (@alexr00)