Skip to content

Snap package fixes and improvements - #298237

Draft
Dmitriy Vasyura (dmitrivMS) wants to merge 14 commits into
mainfrom
dev/dmitriv/build-snap-arm64
Draft

Dmitriy Vasyura (dmitrivMS) wants to merge 14 commits into
mainfrom
dev/dmitriv/build-snap-arm64

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Feb 27, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #93046
Fixes #117685
Fixes #125120
Fixes #241174
Fixes #241636
Fixes #269552

Changes
Enabled building Snap package for arm64.
Upgraded Snap to core22 base.
Register VS Code with update-alternatives.

@dmitrivMS Dmitriy Vasyura (dmitrivMS) added the snap Issues related to the snap package label Feb 27, 2026
Copilot AI review requested due to automatic review settings February 27, 2026 12:14

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

This PR adds ARM64 support to VS Code Snap packages by updating the build infrastructure, snapcraft configuration, and Azure CI/CD pipelines. The changes address long-standing feature requests (#125120, #269552) for ARM64 snap packages on Linux systems.

Changes:

  • Updated snapcraft.yaml to support multi-architecture builds (x64 and arm64) and upgraded from Ubuntu 20.04 (core20) to 24.04 (core24) base
  • Modified build scripts to generate architecture-specific snapcraft configurations with appropriate multiarch library paths
  • Extended Azure pipeline to build and publish ARM64 snap packages alongside existing x64 packages

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
resources/linux/snap/snapcraft.yaml Added architecture template variables, upgraded to core24 base, updated dependencies and library paths for multiarch support
build/gulpfile.vscode.linux.ts Added BUILD_ARCHITECTURE and DEB_ARCHITECTURE template variable replacements for architecture-specific snap builds
build/azure-pipelines/product-build.yml Propagated VSCODE_BUILD_LINUX_SNAP parameter to arm64 build job
build/azure-pipelines/linux/steps/product-build-linux-compile.yml Extended snap build condition to include arm64 architecture and updated docker image reference to be architecture-specific

Comment thread build/gulpfile.vscode.linux.ts Outdated
Comment thread resources/linux/snap/snapcraft.yaml Outdated

@tharthar1010 tharthar1010 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi
Help
Good 👍

@dmitrivMS Dmitriy Vasyura (dmitrivMS) added linux Issues with VS Code on Linux engineering VS Code - Build / issue tracking / etc. labels Feb 28, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) changed the title Add Snap ARM64 support Add Snap ARM64 support, switch to core24 Feb 28, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) changed the title Add Snap ARM64 support, switch to core24 Add Snap ARM64 support, switch to core22 Mar 1, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) changed the title Add Snap ARM64 support, switch to core22 Snap package fixes and improvements Mar 1, 2026
@qwertychouskie

Copy link
Copy Markdown

With arm64 devices becoming more common, I'd love to see this get finished (ideally, including updating to use core24 or even core26) and merged.

@billmcilhargey

Dr Bill Mcilhargey (billmcilhargey) commented Sep 29, 2026 •

Copy link
Copy Markdown

I opened draft #338607 as a focused follow-up/alternative for the ARM64 Snap packaging work here. It uses pinned native-architecture Snapcraft 8 builders for core22/core24 (core24 default) and wires ARM64 artifacts and sanity coverage. The changes to snapcraft.yaml and the Linux pipeline overlap with this PR; my draft intentionally does not include your update-alternatives or terminal-environment fixes. Please coordinate or cherry-pick rather than merge the overlapping patches independently. Native ARM64 installation and Snap Store publication still need validation.

Policy update: The VS Code PR Check rejects protected build/pipeline changes on my community-classified PR. A VS Code team member would need to adopt/cherry-pick those changes into an authorized PR, or provide the trusted team-member-signed head commit required by the check. A generic GitHub Verified signature alone would not pass this gate; I am not requesting a policy bypass.

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

engineering VS Code - Build / issue tracking / etc. linux Issues with VS Code on Linux snap Issues related to the snap package

Projects

None yet

6 participants

Sponsor
SponsoredKunjungi sekarang
Promo