Skip to content

feat: update snap base to core24 - #349577

Open
Robo (deepak1556) wants to merge 6 commits into
mainfrom
robo/update_snap_base
Open

Robo (deepak1556) wants to merge 6 commits into
mainfrom
robo/update_snap_base

Conversation

@deepak1556

Copy link
Copy Markdown
Collaborator

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

@deepak1556 Robo (deepak1556) added this to the 1.149.0 milestone Nov 21, 2026
@deepak1556 Robo (deepak1556) self-assigned this Nov 21, 2026
Copilot AI balanced review requested due to automatic review settings November 21, 2026 01:48

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.

🟡 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
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

Comment thread resources/linux/snap/snapcraft.yaml Resolved
Comment thread resources/linux/snap/snapcraft.yaml Resolved
Comment thread src/vs/base/common/processes.ts Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: e8f68f91 Current: d5b66cfa

Changed (1)

chat/chatSubagentContent/ReadOnlyThinkingAcrossCompletion/Light
Before After
before after

@deepak1556
Robo (deepak1556) marked this pull request as ready for review November 25, 2026 03:34
@dmitrivMS

Copy link
Copy Markdown
Collaborator

Yay!

@dmitrivMS

Dmitriy Vasyura (dmitrivMS) commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Potentially also addressed (needs verification):
#329142 (Snap Wayland override)
#257331 (KDE xdg-open hang)
#325800 (Snap GPU acceleration)

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.

Comment thread resources/linux/snap/snapcraft.yaml Resolved
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;

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

5 participants