Repository navigation
feat: update snap base to core24 - #349577
Open
Robo (deepak1556) wants to merge 6 commits into
Open
Robo (deepak1556) wants to merge 6 commits into
Robo (deepak1556) wants to merge 6 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved issues can load incompatible libraries on core24 arm64, fail browser and macOS tests, discard saved pixbuf settings, expose inaccessible window controls by default, and mislabel the product license.
5 open issues
Use the substituted multiarch triplet for core24 builds · New Skip platform-inapplicable window controls tests · New Use the product license instead of hardcoding MIT · New Preserve pixbuf backup variables during cleanup · New Make custom titlebar controls accessible before enabling by default · New
What changed in this PR
This PR migrates VS Code’s Linux Snap package from core20 to core24 and updates desktop integration to address reported library, Wayland, graphics, and native-dialog issues.
Changes:
- Updates Snap dependencies, architecture-specific library paths, and packaging infrastructure for core24.
- Revises Wayland detection and restores saved host environment variables when sanitizing child-process environments.
- Defaults Snap Wayland sessions to custom window controls and adds regression tests.
| File | Description |
|---|---|
src/vs/workbench/electron-browser/desktop.contribution.ts |
Sets the Snap Wayland window-controls default. |
src/vs/platform/window/test/common/window.test.ts |
Tests Snap Wayland defaults and explicit control preferences. |
src/vs/platform/window/common/window.ts |
Resolves Snap-aware window-control behavior. |
src/vs/base/test/common/processes.test.ts |
Tests restoration of saved Snap environment values. |
src/vs/base/common/processes.ts |
Restores host environment values during sanitization. |
resources/linux/snap/snapcraft.yaml |
Migrates the base, dependencies, metadata, and binary patching. |
resources/linux/snap/electron-launch |
Updates Wayland detection and desktop runtime setup. |
build/gulpfile.vscode.linux.ts |
Adds architecture-specific core24 packaging substitutions. |
build/azure-pipelines/linux/steps/product-build-linux-package.yml |
Updates the pinned Snap build image. |
build/azure-pipelines/linux/build-snap.sh |
Updates Snapcraft invocation and retry checks. |
Review effort: Balanced
SteVen Batten (sbatten)
previously approved these changes
Nov 21, 2026
Robo (deepak1556)
force-pushed
the
robo/update_snap_base
branch
2 times, most recently
from
November 24, 2026 11:18
de91f53 to
2d35b9b
Compare
Robo (deepak1556)
force-pushed
the
robo/update_snap_base
branch
from
November 24, 2026 11:54
2d35b9b to
484fa48
Compare
Contributor
Robo (deepak1556)
marked this pull request as ready for review
November 25, 2026 03:34
Robo (deepak1556)
enabled auto-merge
November 25, 2026 03:34
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 25, 2026
Collaborator
|
Yay! |
Collaborator
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Snap build changes block arm64 builds on amd64 hosts and lack reliable patchelf safeguards, risking Mesa library corruption and GPU-process crashes.
13 open issues
Allow amd64 hosts to build the arm64 Snap target · New Require compatible patchelf across all Snap build paths · New Do not restore or replay the one-shot WAYLAND_SOCKET descriptor · New Avoid inferring a local Wayland socket in non-Wayland sessions · New Handle dangling Wayland socket symlinks in fallback detection · New Avoid forcing Qt Wayland for extension and debug adapter processes · New Preserve the Wayland session type when selecting the X11 backend · New Avoid overriding TMPDIR for all Snap processes · New Scope the bundled Mesa driver path to Electron · New Use PipeWire client.conf for Electron capture · New Remove unneeded WebKitGTK and libsoup dependencies · New Restore Snap environment markers before resolving the login shell · New Make custom Snap Wayland titlebar controls accessible · New
5 resolved since last review
Review effort: Max
| plugin: dump | ||
| source: . | ||
| build-attributes: | ||
| - enable-patchelf |
Comment on lines
+147
to
148
| if [[ -n "${WAYLAND_SOCKET:-}" ]]; then | ||
| wayland_available=true |
Comment on lines
+150
to
+151
| wayland_name="${WAYLAND_DISPLAY:-wayland-0}" | ||
| if [[ "$wayland_name" = /* ]]; then |
| wayland_available=true | ||
| if [[ -n "${XDG_RUNTIME_DIR:-}" && ! -e "$wayland_socket" && ! -L "$wayland_socket" ]]; then | ||
| ln -s "$wayland_fallback" "$wayland_socket" | ||
| elif [[ -e "$wayland_socket" && ! -S "$wayland_socket" ]]; then |
Comment on lines
+211
to
+212
| prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/dri" | ||
| prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/$ARCH/dri" |
|
|
||
| if [ "$wayland_available" = true ]; then | ||
| export SPA_PLUGIN_DIR="$SNAP/usr/lib/$ARCH/spa-0.2" | ||
| export PIPEWIRE_CONFIG_NAME="$SNAP/usr/share/pipewire/pipewire.conf" |
Comment on lines
+84
to
+85
| - libwebkit2gtk-4.1-0 | ||
| - libsoup-3.0-0 |
Comment on lines
+132
to
+135
| if (env[key]) { | ||
| env[originalKey] = env[key]; | ||
| } else { | ||
| delete env[originalKey]; |
| const controlsStyle = configurationService.inspect<WindowControlsStyle>('window.controlsStyle'); | ||
| const isControlsStyleExplicitlyConfigured = isConfigured(controlsStyle) || controlsStyle.policyValue !== undefined || controlsStyle.memoryValue !== undefined; | ||
| if (linuxSnap && xdgSessionType === 'wayland' && !isControlsStyleExplicitlyConfigured) { | ||
| return WindowControlsStyle.CUSTOM; |
Robo (deepak1556)
disabled auto-merge
November 25, 2026 04:05
Bryan Chen (bryanchen-d)
approved these changes
Nov 25, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fixes #348866
Fixes #241636
Fixes #202072
Fixes #223591
Fixes #284813
Fixes #343527
Fixes #287518
Fixes #241174
Fixes #232615
Fixes #229020
Fixes #233399
Fixes #179086
Fixes #117685
Fixes #105729
Fixes #103760
Fixes #96041
Fixes #180629