vscode
| Version | 2026.155.1458 |
| Repo | superproject |
VS Code is installed and launchable as /usr/bin/code on every distro
The candy installs Microsoft’s Visual Studio Code by two paths that
converge on the same launcher: on Arch a sha256-verified direct
tarball extracted to /opt/vscode and symlinked to /usr/bin/code, and
on Fedora the code RPM from Microsoft’s yum repo. Either path lands
an executable at /usr/bin/code that prints its semantic version, so
both are verifiable the same cross-distro way.
Acceptance plan
Section titled “Acceptance plan”This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.
| Intent | Step |
|---|---|
run |
command=command -v pacman >/dev/null 2>&1 || exit 0 set -eu cache=/var/cache/charly-vscode tarball=“${cache}/code-${VSCODE_VERSION}.tar.gz” mkdir -p “$cache” if [ ! -f “$tarball” ] || ! printf ‘%s %s\n’ “$VSCODE_SHA256” “$tarball” | sha256sum -c - >/dev/null 2>&1; then curl -fsSL “https://update.code.visualstudio.com/${VSCODE_VERSION}/linux-x64/stable” -o “${tarball}.part” printf ‘%s %s\n’ “$VSCODE_SHA256” “${tarball}.part” | sha256sum -c - mv -f “${tarball}.part” “$tarball” fi rm -rf /opt/vscode mkdir -p /opt/vscode tar -xzf “$tarball” -C /opt/vscode –strip-components=1 ln -sf /opt/vscode/bin/code /usr/bin/code |
check |
the code launcher is present at /usr/bin/code |
check |
running code –version exits 0 and prints a semantic version |
check |
file=/usr/bin/code |
check |
command=/usr/bin/code –version |