Skip to content

chore: update to Electron 43 - #332935

Merged
Robo (deepak1556) merged 22 commits into
mainfrom
electron-43.x.y
Sep 16, 2026
Merged

Robo (deepak1556) merged 22 commits into
mainfrom
electron-43.x.y

Conversation

@deepak1556

@deepak1556 Robo (deepak1556) commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

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)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/vs/code/electron-main/app.ts Fixed
@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Base: 6182a6eb Current: 357a7134

No screenshot changes.

@robin24

Copy link
Copy Markdown

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): AXLineForIndex and AXRangeForLine returned the wrong line unless the caret was at a line start, which breaks VoiceOver Braille line tracking in every multi-line text field on macOS, native textareas included. 43.4.1 and 43.5.1 do not have it. From the 43.6.0 release notes: "Fixed VoiceOver Braille displays showing the wrong line in multi-line text fields on macOS" (https://github.com/electron/electron/releases/tag/v43.6.0).

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.

@deepak1556

Copy link
Copy Markdown
Collaborator Author

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.

@deepak1556
Robo (deepak1556) force-pushed the electron-43.x.y branch 3 times, most recently from c596eb3 to f03d22a Compare September 15, 2026 09:14
@deepak1556 Robo (deepak1556) modified the milestones: On Deck, 1.139.0 Sep 15, 2026
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().
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Kyle Cutler (@kycutler)

Matched files:

  • extensions/vscode-api-tests/src/singlefolder-tests/browser.cdp.test.ts

Joaquín Ruales (@jruales)

Matched files:

  • extensions/vscode-api-tests/src/singlefolder-tests/browser.cdp.test.ts

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/browser/parts/titlebarPart.ts
  • src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css
  • src/vs/workbench/browser/parts/titlebar/titlebarPart.ts

@deepak1556
Robo (deepak1556) merged commit 4ae4d96 into main Sep 16, 2026
34 checks passed
@deepak1556
Robo (deepak1556) deleted the electron-43.x.y branch September 16, 2026 06:59
Jim Myhrberg (jimeh) added a commit to jimeh/hucode that referenced this pull request Sep 26, 2026
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]>
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

6 participants