Skip to content

Visual Studio Code, rebuilt in Rust

Rust

chore(port): make the 1.148.0 checkout the tools' default reference

rokartur2d3a51a7eeb9
diff --git a/port/notes.md b/port/notes.md
index 93a828cf117..690151aba83 100644
--- a/port/notes.md
+++ b/port/notes.md
@@ -9,7 +9,7 @@ Decisions, traps and findings that the ledger rows point to. Newest at the end o
- `src/bootstrap-exthost.ts` (added by `port/patches/src-bootstrap-exthost.patch`): entry of the extension host bundle (`port/tools/build-exthost` writes `out-exthost/bootstrap-exthost.js`). Same bundle on Bun and Node.
- Upstream edits (milestone 22) are `port/patches/*.patch` against the 1.148.0 tag, never committed to upstream: `build-exthost` applies `src-*.patch` to a copy of `src/` in `out-exthost/build` and inlines product.json with `port/product.json` (the port's name, data folder, bundle id, URL protocol) over it; `package-app` applies `extensions-*.patch` to the bundled extensions and writes the merged product.json; `product.rs` merges `port/product.json` at startup. A patch is regenerated by editing the file in `upstream/` and `git -C upstream diff -- <file>`, then `git -C upstream checkout -- <file>`.
- `port/tools/studio <cmd>`: syncs the tree to the Mac Studio (`~/Developer/vscode-gpui-work/port-src`) and runs `<cmd>` there. All builds and runs go through it.
-- Reference: untouched 1.148.0 checkout at `~/Developer/vscode-ref-1.148.0` on the Studio (compiled, extensions compiled; the tools take it through `REF`); `~/Developer/vscode-ref` stays the 1.147.0 one until milestones 16 and 20 close on it. Wu `a3ced28` at `~/Developer/wu`.
+- Reference: untouched 1.148.0 checkout at `~/Developer/vscode-ref-1.148.0` on the Studio (compiled, extensions compiled), the default `REF` of every port tool. `~/Developer/vscode-ref` is the 1.147.0 checkout, kept until the sessions still on 1.147.0 end; `~/Developer/vscode-ref-openvsx` (Open VSX product overrides, milestone 18) is a 1.147.0 copy too. Wu `a3ced28` at `~/Developer/wu`.
## Extension host seam
@@ -959,7 +959,7 @@ What to do (milestone 21, in order):
- Every app launch takes focus, so GUI tools on the Studio desktop take turns behind `/tmp/port-gui.lock` (`gui-lock.sh`). Two tart macOS VMs add lanes with their own desktop, focus and pasteboard (Apple allows two macOS VMs per host): `port/tools/studio --lane 'FILE=notes.txt port/tools/ui-pair /tmp/out port/fixtures/ui-pair/m12/compare.json'` runs the command in the first free lane (host, `gui-vm1`, `gui-vm2`; `port/tools/gui-lane` on the Studio). Tools called without it behave as before.
- 2026-11-29 (Artur): gui-vm1 and gui-vm2 are deleted, so `--lane` runs on the host desktop only (gui-lane lists running VMs). `port/tools/gui-vm gui-vm1` recreates one; the base image downloads again.
-- In a VM the command runs over ssh in the same mirror path; `~/Developer/vscode-gpui-work` and `~/Developer/vscode-ref` are tart `--dir` shares, read-only, linked at the host's paths. Outputs go to `/tmp`: `/tmp` paths in the command are copied into the VM before the run and back after it, also when the caller's timeout cuts its ssh. The reference cache of `ui-pair` is per machine (`~/Library/Caches` of the VM user).
+- In a VM the command runs over ssh in the same mirror path; `~/Developer/vscode-gpui-work`, `~/Developer/vscode-ref-1.148.0` and `~/Developer/vscode-ref` are tart `--dir` shares (`port/tools/gui-vm`; a VM started before the 1.148.0 share sees only the 1.147.0 one), read-only, linked at the host's paths. Outputs go to `/tmp`: `/tmp` paths in the command are copied into the VM before the run and back after it, also when the caller's timeout cuts its ssh. The reference cache of `ui-pair` is per machine (`~/Library/Caches` of the VM user).
- `port/tools/gui-vm gui-vm1` (on the Studio) creates, starts and provisions a VM, and can run again: the Cirrus Labs `macos-golden-gate-base` image (SIP off), 4 CPUs, 6 GB, the host's 1814x910 pt display at 2x and global defaults (dark appearance and glass tint change the window chrome) and time zone, automatic updates off, cua-driver granted Accessibility and Screen Recording through TCC.db and replayd's approvals without a click. `port/tools/gui-vm gui-vm2 gui-vm1` clones a stopped gui-vm1, so both run the same build (27.2.1, 26B131, as the host). The VMs run as launchd jobs `org.vsrustium.gui-vm*`: `tart run` from an ssh session stops with it.
- Fidelity (m12/compare, FILE=notes.txt): two host runs and two VM runs are each bit-identical; host against VM differs by at most 2/255 in shadows and blending, and up to 24/255 on 361 px of the traffic lights. Parallel runs on gui-vm1 and gui-vm2 give the port's shots of a serial run, 0 px.
- Disk: each VM disk grows to 64 GB in `~/.tart/vms`, next to the 38 GB image in `~/.tart/cache`.
diff --git a/port/tools/a11y-check b/port/tools/a11y-check
index f63414a36bd..921a51c24ef 100755
--- a/port/tools/a11y-check
+++ b/port/tools/a11y-check
@@ -18,7 +18,7 @@ function portUserData() {
const out = process.argv[2] ?? mkdtempSync(join(tmpdir(), 'a11y-check-'));
mkdirSync(out, { recursive: true });
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
await takeGuiLock();
const folder = join(mkdtempSync(join(tmpdir(), 'a11y-')), 'workspace');
cpSync('port/fixtures/workspace', folder, { recursive: true });
diff --git a/port/tools/api-tests b/port/tools/api-tests
index bdd9a2bc0f1..7ca057637c8 100755
--- a/port/tools/api-tests
+++ b/port/tools/api-tests
@@ -2,11 +2,11 @@
# Runs extensions/vscode-api-tests against vsrustium the way scripts/test-integration.sh runs suites api-folder and
# api-workspace against the reference, prints passing/pending/failing per suite and writes port/results/api-tests.md.
# Run from the repo root on the Studio (port/tools/studio port/tools/api-tests), then copy the results file back.
-# The test extension, its compiled tests and mocha come from the untouched 1.147.0 reference checkout, copied so the
+# The test extension, its compiled tests and mocha come from the untouched 1.148.0 reference checkout, copied so the
# tests' file writes stay out of it. Each suite ends after SUITE_TIMEOUT seconds; counts are then the partial ones.
# MOCHA_GREP=<pattern> runs only the matching tests (test/integration/electron/testrunner.js reads it).
set -uo pipefail
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
# The tests compare workspace paths with their realpath'd __dirname, so the tree sits under /private/tmp, not /tmp.
OUT=${OUT:-$(cd /tmp && pwd -P)/api-tests-$(basename "$PWD")}
SUITE_TIMEOUT=${SUITE_TIMEOUT:-1800}
@@ -41,15 +41,15 @@ run_suite() { # <suite> <folder or workspace file> <tests folder> <tests in the
rows+=("| $1 | $passing | $pending | $failing | $not_reached | $run |")
}
-run_suite api-folder "$tests/testWorkspace" singlefolder-tests 402
+run_suite api-folder "$tests/testWorkspace" singlefolder-tests 408
run_suite api-workspace "$tests/testworkspace.code-workspace" workspace-tests 4
{
echo "# vscode-api-tests on the port"
echo
- echo "Written by \`port/tools/api-tests\` at $(git describe --always --dirty) on $(date -u +%Y-%m-%d), \`SHELL=/bin/bash\`, Bun host, built-in extensions and test extension from the reference checkout. Reference: \`port/results/api-tests-reference.md\` (folder 356/46/0, workspace 4/0/0)."
+ echo "Written by \`port/tools/api-tests\` at $(git describe --always --dirty) on $(date -u +%Y-%m-%d), \`SHELL=/bin/bash\`, Bun host, built-in extensions and test extension from the reference checkout. Reference: \`port/results/api-tests-reference.md\` (folder 362/46/0, workspace 4/0/0)."
echo
- echo "Not reached: tests of the reference run (402 folder, 4 workspace) the port did not get to before the suite ended."
+ echo "Not reached: tests of the reference run (408 folder, 4 workspace) the port did not get to before the suite ended."
echo
echo "| suite | passing | pending | failing | not reached | run |"
echo "|-------|---------|---------|---------|-------------|-----|"
diff --git a/port/tools/corner-lab b/port/tools/corner-lab
index 37665b0ba03..b4b1cc50704 100755
--- a/port/tools/corner-lab
+++ b/port/tools/corner-lab
@@ -9,7 +9,7 @@ import { join, resolve } from 'node:path';
type Case = { name: string; r: number[]; b: number[]; bg: string; bc?: string; w?: number; h?: number; dx?: number; dy?: number; under?: string; underWidth?: number; backdrop?: number; child?: { bg: string; h: number }; shadow?: { y: number; blur: number; spread: number; color: string } };
const lab: { page: string; cases: Case[] } = await Bun.file('port/fixtures/corners/lab.json').json();
const out = resolve(process.argv[2] ?? 'port/fixtures/corners/chromium.png');
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
// Keep in sync with `lab_case_origin` in native/crates/app/src/corner_lab.rs.
const CELL = 48, COLUMNS = 8, INSET = 8;
diff --git a/port/tools/dump-settings b/port/tools/dump-settings
index 6acbfe76e9d..a6957f6817a 100755
--- a/port/tools/dump-settings
+++ b/port/tools/dump-settings
@@ -6,7 +6,7 @@
# (dumped again with product.overrides.json `{"quality":"stable"}`), null for one it does not register.
# Run on the Studio: port/tools/studio port/tools/dump-settings, then copy the files back.
set -euo pipefail
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
electron="$REF/.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS"
out=$(mktemp -d)
source port/tools/gui-lock.sh
diff --git a/port/tools/extension-tests b/port/tools/extension-tests
index 226bcfd6273..78eab9da427 100755
--- a/port/tools/extension-tests
+++ b/port/tools/extension-tests
@@ -2,7 +2,7 @@
# Runs a built-in extension's integration tests (its out/test, as .vscode-test.js and scripts/test-integration.sh run
# them on the reference) against vsrustium and prints mocha's summary.
# Usage, from the repo root on the Studio: port/tools/extension-tests <extension> [workspace folder]
-# The extension and its compiled tests come from the untouched 1.147.0 reference checkout, copied next to the
+# The extension and its compiled tests come from the untouched 1.148.0 reference checkout, copied next to the
# reference's test runner as the tests' `../../../../test/integration/electron/testrunner` import expects; the
# workspace is a new empty folder unless one is given (.vscode-test.js's `<label>out-<n>` temp folders); a relative
# one is a folder of the extension's copy (markdown-language-features runs in `test-workspace`).
@@ -11,7 +11,7 @@
# reference build instead.
set -uo pipefail
extension=$1
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
OUT=$(cd /tmp && pwd -P)/extension-tests-$extension-$(basename "$PWD")
rm -rf "$OUT" && mkdir -p "$OUT/tree/extensions" "$OUT/tree/test/integration/electron" "$OUT/workspace"
cp -cR "$REF/extensions/$extension" "$OUT/tree/extensions/"
diff --git a/port/tools/extensions-check b/port/tools/extensions-check
index 78b9d90affb..4629c574b34 100755
--- a/port/tools/extensions-check
+++ b/port/tools/extensions-check
@@ -3,7 +3,7 @@
# installs and uninstalls them through the workbench commands while the host runs. Prints one line per check.
set -euo pipefail
cd "$(dirname "$0")/../.."
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
out=$(mktemp -d)
for fixture in port/fixtures/extensions/vsix-*; do
mkdir -p "$out/pack/extension" && rm -rf "$out/pack/extension"/* && cp -R "$fixture"/. "$out/pack/extension/"
diff --git a/port/tools/gui-lane b/port/tools/gui-lane
index 25c6d94b56e..5ff338f81a4 100755
--- a/port/tools/gui-lane
+++ b/port/tools/gui-lane
@@ -5,7 +5,7 @@
# (from this Mac: port/tools/studio --lane '<cmd>'). Setup of the VMs: port/notes.md, "GUI lanes".
# The host lane holds /tmp/port-gui.lock and sets PORT_GUI_LOCK_HELD, so the tool does not wait for its own lane.
# A VM lane holds /tmp/port-gui-<vm>.lock and runs the command over ssh in the same directory: the VM sees
-# ~/Developer/vscode-gpui-work and ~/Developer/vscode-ref read-only at the host's paths through tart --dir shares.
+# ~/Developer/vscode-gpui-work, ~/Developer/vscode-ref-1.148.0 and ~/Developer/vscode-ref read-only at the host's paths through tart --dir shares.
# Outputs go to /tmp: /tmp paths in the command are copied into the VM before the run and back after it.
set -euo pipefail
cmd=$1
@@ -24,7 +24,7 @@ take() {
waiting=
until [[ -n $lane_lock ]]; do
- # GUI_LANE=host: the VMs share only ~/Developer/vscode-ref, so a run against another reference needs the host.
+ # GUI_LANE=host: the VMs share only the two references gui-vm mounts, so a run against another one needs the host.
for lane in ${GUI_LANE:-host $(tart list --format json | jq -r '.[] | select(.Running) | .Name | select(startswith("gui-vm"))')}; do
lock=/tmp/port-gui.lock
[[ $lane == host ]] || lock=/tmp/port-gui-$lane.lock
diff --git a/port/tools/gui-vm b/port/tools/gui-vm
index 2825adadfee..a46cd6144e5 100755
--- a/port/tools/gui-vm
+++ b/port/tools/gui-vm
@@ -2,9 +2,10 @@
# Creates, starts and provisions one GUI lane VM on the Mac Studio (port/tools/gui-lane): port/tools/gui-vm gui-vm1
# port/tools/gui-vm gui-vm2 gui-vm1 clones a stopped gui-vm1 instead, so both lanes run the same macOS build.
# Runs on the Studio host. A tart clone of the Cirrus Labs macOS base image (SIP off, user admin/admin), 4 CPUs,
-# 6 GB, the host's 1814x910 pt display at 2x, headless. Shares ~/Developer/vscode-gpui-work and ~/Developer/vscode-ref
-# read-only (tools write to /tmp in the VM), linked in the VM at the host's paths. Copies cua-driver and bun from the host and
-# grants cua-driver Accessibility, Screen Recording and the capture alert. Every step can run again.
+# 6 GB, the host's 1814x910 pt display at 2x, headless. Shares ~/Developer/vscode-gpui-work, ~/Developer/vscode-ref-1.148.0
+# (the tools' default reference) and ~/Developer/vscode-ref (1.147.0, until its last session ends) read-only (tools
+# write to /tmp in the VM), linked in the VM at the host's paths. Copies cua-driver and bun from the host and grants
+# cua-driver Accessibility, Screen Recording and the capture alert. Every step can run again.
set -euo pipefail
vm=$1
source=${2:-ghcr.io/cirruslabs/macos-golden-gate-base:latest}
@@ -17,7 +18,7 @@ if ! tart list --format json | jq -e --arg vm "$vm" '.[] | select(.Name == $vm a
agent=$HOME/Library/LaunchAgents/org.vsrustium.$vm.plist
plutil -create xml1 "$agent"
plutil -insert Label -string "org.vsrustium.$vm" "$agent"
- plutil -insert ProgramArguments -json "[\"$(command -v tart)\",\"run\",\"$vm\",\"--no-graphics\",\"--dir=work:$HOME/Developer/vscode-gpui-work:ro\",\"--dir=ref:$HOME/Developer/vscode-ref:ro\"]" "$agent"
+ plutil -insert ProgramArguments -json "[\"$(command -v tart)\",\"run\",\"$vm\",\"--no-graphics\",\"--dir=work:$HOME/Developer/vscode-gpui-work:ro\",\"--dir=ref:$HOME/Developer/vscode-ref:ro\",\"--dir=ref148:$HOME/Developer/vscode-ref-1.148.0:ro\"]" "$agent"
plutil -insert RunAtLoad -bool true "$agent"
plutil -insert StandardOutPath -string "/tmp/$vm.log" "$agent"
plutil -insert StandardErrorPath -string "/tmp/$vm.log" "$agent"
@@ -42,6 +43,7 @@ set -euo pipefail
sudo mkdir -p /Users/artur/Developer
sudo ln -sfn '/Volumes/My Shared Files/work' /Users/artur/Developer/vscode-gpui-work
sudo ln -sfn '/Volumes/My Shared Files/ref' /Users/artur/Developer/vscode-ref
+sudo ln -sfn '/Volumes/My Shared Files/ref148' /Users/artur/Developer/vscode-ref-1.148.0
ln -sfn /Users/artur/Developer ~/Developer
sudo rm -rf /Applications/CuaDriver.app
sudo cp -R /tmp/gui-vm/CuaDriver.app /Applications/
diff --git a/port/tools/network-capture b/port/tools/network-capture
index 48d82fb0bac..2e1df70ebf6 100755
--- a/port/tools/network-capture
+++ b/port/tools/network-capture
@@ -9,7 +9,7 @@
# shortcut: nettop reports a process only if it is alive at a 1 s sample; a child that connects and exits between
# two samples is missed. A packet capture (tcpdump, needs root) would close that gap.
set -uo pipefail
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
DURATION=${DURATION:-600}
OUT=${OUT:-/tmp/network-capture-$(basename "$PWD")}
rm -rf "$OUT" && mkdir -p "$OUT"
diff --git a/port/tools/package-app b/port/tools/package-app
index 46c03159e9e..3a6a8d237b9 100755
--- a/port/tools/package-app
+++ b/port/tools/package-app
@@ -16,7 +16,7 @@ import { buildProduct, copyAppFiles, rebuildNativeModule, writeFeedEntries } fro
import { vscodeSrc } from './vscode-src.ts';
const root = process.cwd();
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const extensionsDir = process.env.VSCODE_GPUI_EXTENSIONS ?? join(ref, 'extensions');
const out = process.env.OUT ?? join(root, 'native/target/VSRustium.app');
const identity = process.env.IDENTITY ?? '-';
diff --git a/port/tools/pixel-check b/port/tools/pixel-check
index ba9cc29d4d4..80011ab3e7f 100755
--- a/port/tools/pixel-check
+++ b/port/tools/pixel-check
@@ -66,7 +66,7 @@ for window in ${WINDOWS:-empty folder file main multiroot folded find quickopen
port_settings='{"workbench.startupEditor":"none","workbench.tips.enabled":false}'
[[ -n $settings ]] && port_settings="{\"workbench.startupEditor\":\"none\",\"workbench.tips.enabled\":false,${settings#\{}"
mkdir -p "$user_data/User" && echo "$port_settings" >"$user_data/User/settings.json"
- VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref/extensions} \
+ VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref-1.148.0/extensions} \
capture "$dir/port-$theme.sample" native/target/release/vsrustium $folder $file --user-data-dir "$user_data" --disable-workspace-trust --theme "$theme_id" --screenshot "$dir/port-$theme.png" --screenshot-keys "$keys" 2>"$dir/port-$theme.log" || { echo "$window $theme: code-gpui failed with exit $? (124: hung 120 s, stacks in $dir/port-$theme.sample), see $dir/port-$theme.log"; exit 1; }
counts=$(native/target/release/pixeldiff "$dir/reference/$theme.png" "$dir/port-$theme.png" "$dir/diff-$theme.png")
echo "$window $theme $counts"
diff --git a/port/tools/privacy-check b/port/tools/privacy-check
index 76095dd5bb6..6cd4c28c692 100755
--- a/port/tools/privacy-check
+++ b/port/tools/privacy-check
@@ -4,7 +4,7 @@
# Run on the Studio after a release build and port/tools/build-exthost. Prints one line per check and runtime.
set -uo pipefail
cd "$(dirname "$0")/../.."
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
out=$(mktemp -d)
source port/tools/gui-lock.sh
tests=$PWD/port/fixtures/extensions/privacy-tests
diff --git a/port/tools/ref-commands b/port/tools/ref-commands
index 4d9a8560ead..531589373b1 100755
--- a/port/tools/ref-commands
+++ b/port/tools/ref-commands
@@ -14,7 +14,7 @@ import { taggedClone, untagSource } from './ref-nls-clone.ts';
const out = process.argv[2] ?? 'native/crates/app/src/command_palette/reference-commands.json';
// contextkey.ts `getContextKeyInfo`: RawContextKey.all() sorted by key, the context key descriptions keybindings.json completes.
const contextKeysOut = process.argv[3] ?? 'native/crates/app/src/contextkey/reference-context-keys.json';
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
const port = 9338;
diff --git a/port/tools/ref-contextmenu b/port/tools/ref-contextmenu
index 206050000d7..d8c25b1aad8 100755
--- a/port/tools/ref-contextmenu
+++ b/port/tools/ref-contextmenu
@@ -10,7 +10,7 @@ import { join } from 'node:path';
const outDir = process.argv[2] ?? '/tmp/ref-contextmenu';
const targets = process.argv.slice(3);
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
const themes: Record<string, string> = { dark: 'Default Dark Modern', light: 'Default Light Modern', hc: 'Default High Contrast', hclight: 'Default High Contrast Light' };
const port = 9336;
diff --git a/port/tools/ref-dom b/port/tools/ref-dom
index c5bf1d424f3..f5d05f6eb1a 100755
--- a/port/tools/ref-dom
+++ b/port/tools/ref-dom
@@ -14,7 +14,7 @@ import { join } from 'node:path';
import { referenceArgs, referenceUserData } from './ref-user-data.ts';
const [outDir, ...actions] = process.argv.slice(2);
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
const themes: Record<string, string> = {
dark: 'Default Dark Modern', light: 'Default Light Modern', hc: 'Default High Contrast', hclight: 'Default High Contrast Light',
diff --git a/port/tools/ref-hover b/port/tools/ref-hover
index c3a92bef74a..2cc02515510 100755
--- a/port/tools/ref-hover
+++ b/port/tools/ref-hover
@@ -10,7 +10,7 @@ import { join } from 'node:path';
const outDir = process.argv[2] ?? '/tmp/ref-contextmenu';
const targets = process.argv.slice(3);
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
const themes: Record<string, string> = { dark: 'Default Dark Modern', light: 'Default Light Modern', hc: 'Default High Contrast', hclight: 'Default High Contrast Light' };
const port = 9337;
diff --git a/port/tools/ref-menubar b/port/tools/ref-menubar
index 86daae22f97..28a099feacb 100755
--- a/port/tools/ref-menubar
+++ b/port/tools/ref-menubar
@@ -7,7 +7,7 @@ import { tmpdir } from 'node:os';
import { join } from 'node:path';
const out = process.argv[2] ?? '/tmp/ref-menubar.json';
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
const rendererPort = 9334;
const mainPort = 9335;
diff --git a/port/tools/ref-screenshot b/port/tools/ref-screenshot
index eb04b0a252a..930c1d7281c 100755
--- a/port/tools/ref-screenshot
+++ b/port/tools/ref-screenshot
@@ -1,6 +1,6 @@
#!/usr/bin/env bun
// Captures the reference VS Code workbench through CDP (Page.captureScreenshot), so no Screen Recording permission is needed.
-// Usage: port/tools/ref-screenshot <out-dir> [dark|light|hc|hclight|abyss|... (the keys of `themes`)] (env REF = reference checkout, default ~/Developer/vscode-ref;
+// Usage: port/tools/ref-screenshot <out-dir> [dark|light|hc|hclight|abyss|... (the keys of `themes`)] (env REF = reference checkout, default ~/Developer/vscode-ref-1.148.0;
// env FOLDER = folder to open, default none; env FILE = file to open in that window, default none;
// env KEYS = keystrokes to type into it first, GPUI style: "cmd-down up alt-cmd-["; env SETTINGS = a JSON object of
// extra user settings)
@@ -9,7 +9,7 @@ import { join } from 'node:path';
import { referenceArgs, referenceUserData } from './ref-user-data.ts';
const outDir = process.argv[2] ?? 'port/results/screenshots/reference';
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const electron = join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS');
const themes: Record<string, string> = {
dark: 'Default Dark Modern', light: 'Default Light Modern', hc: 'Default High Contrast', hclight: 'Default High Contrast Light',
diff --git a/port/tools/run-app-check b/port/tools/run-app-check
index deb36bd6725..26cc4b83a43 100755
--- a/port/tools/run-app-check
+++ b/port/tools/run-app-check
@@ -6,7 +6,7 @@ cd "$(dirname "$0")/../.."
mkdir -p port/results/raw
source port/tools/gui-lock.sh
data_dir=$(mktemp -d)
-VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref/extensions} native/target/release/vsrustium --user-data-dir "$data_dir" "$@" &
+VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref-1.148.0/extensions} native/target/release/vsrustium --user-data-dir "$data_dir" "$@" &
pid=$!
sleep "${SETTLE_SECONDS:-6}"
ps -o pid,ppid,rss,command -g "$(ps -o pgid= -p "$pid" | tr -d ' ')" | cut -c1-160
diff --git a/port/tools/settings-check b/port/tools/settings-check
index 14cd427db90..8cb08bc26e8 100755
--- a/port/tools/settings-check
+++ b/port/tools/settings-check
@@ -11,7 +11,7 @@
# keybinding export has `false` or lacks (terminal, node-debug), no unbound commands with `args` metadata, the port's own `workbench.action.importSettings`, and the
# Unknown Configuration Setting hint of preferencesRenderers.ts (needs the marker service of milestone 13).
set -uo pipefail
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
OUT=${OUT:-/tmp/settings-check-$(basename "$PWD")}
checks=("$@")
[[ $# -eq 0 ]] && checks=(configuration state secrets environment)
diff --git a/port/tools/shell-check b/port/tools/shell-check
index f35f7059c7d..512352368e6 100755
--- a/port/tools/shell-check
+++ b/port/tools/shell-check
@@ -3,7 +3,7 @@
# between the extension host and the workbench. Run on the Studio after a release build. Prints one line per check.
set -uo pipefail
cd "$(dirname "$0")/../.."
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
out=$(mktemp -d)
source port/tools/gui-lock.sh
tests=$PWD/port/fixtures/extensions/shell-tests
diff --git a/port/tools/shell-gui-check b/port/tools/shell-gui-check
index 382ca0a4ece..830cd5f5fde 100755
--- a/port/tools/shell-gui-check
+++ b/port/tools/shell-gui-check
@@ -7,7 +7,7 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'nod
import { tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const binary = resolve('native/target/release/vsrustium');
const scratch = mkdtempSync(join(tmpdir(), 'shell-gui-'));
const env = { ...process.env, VSCODE_GPUI_EXTENSIONS: join(ref, 'extensions') };
diff --git a/port/tools/telemetry-source-check b/port/tools/telemetry-source-check
index 4e8a5e25825..7f74499a840 100755
--- a/port/tools/telemetry-source-check
+++ b/port/tools/telemetry-source-check
@@ -14,7 +14,7 @@ import { inertPackages, runtimeFiles, shippedBuiltins, shippedPackages } from '.
// binary) is off through DO_NOT_TRACK, set by native/crates/exthost/src/lib.rs.
const endpoints = /[a-z0-9.-]*events\.data\.microsoft\.com|vortex\.data\.microsoft\.com|dc\.services\.visualstudio\.com|dc\.applicationinsights\.[a-z.]+|[a-z0-9.-]*applicationinsights\.azure\.com|js\.monitor\.azure\.com|collector\.azure\.cn|[a-z0-9.-]*exp-tas\.com|copilot-telemetry\.githubusercontent\.com|IngestionEndpoint=[^;"']+/g;
-const extensionsDir = process.env.VSCODE_GPUI_EXTENSIONS ?? join(process.env.HOME!, 'Developer/vscode-ref/extensions');
+const extensionsDir = process.env.VSCODE_GPUI_EXTENSIONS ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0/extensions');
const builtins = shippedBuiltins(extensionsDir);
const packages = shippedPackages(builtins);
const files = ['native/target/release/vsrustium', 'out-exthost/bootstrap-exthost.js', ...[...builtins, ...packages].flatMap(runtimeFiles)];
diff --git a/port/tools/ui-pair b/port/tools/ui-pair
index eb135553245..8ad752b6043 100755
--- a/port/tools/ui-pair
+++ b/port/tools/ui-pair
@@ -2,7 +2,7 @@
// Drives the reference and the port through the same steps with cua-driver and saves window screenshots of both,
// for states a still pixel-check frame cannot reach (inline editors, dialogs, drags). Run on the Studio.
// Usage: port/tools/ui-pair <out-dir> <steps.json> [dark|light|hc|hclight] (env REF = reference checkout,
-// default ~/Developer/vscode-ref; env FOLDER = folder to open, default a copy of port/fixtures/workspace, empty for an empty window;
+// default ~/Developer/vscode-ref-1.148.0; env FOLDER = folder to open, default a copy of port/fixtures/workspace, empty for an empty window;
// env FILE = file to open, relative to the folder; env ONLY = "reference" or "port" to run one of them; env ARGS = more arguments for both, space separated;
// env SETTINGS = a JSON object of user settings for both; env USER_TASKS = a tasks.json file both get as their user tasks)
// Steps, in window points (both windows are 1024x768):
@@ -44,7 +44,7 @@ const [outDir, stepsFile, themeName = 'dark'] = process.argv.slice(2);
const steps: Step[] = JSON.parse(readFileSync(stepsFile, 'utf8'));
/** Windows `otherWindow` found: never taken for a sheet. */
const otherWindowIds = new Set<number>();
-const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref');
+const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const themes: Record<string, [string, string]> = {
dark: ['Default Dark Modern', 'Dark Modern'],
light: ['Default Light Modern', 'Light Modern'],
diff --git a/port/tools/webview-check b/port/tools/webview-check
index 5343560fa9d..7fef9a2c688 100755
--- a/port/tools/webview-check
+++ b/port/tools/webview-check
@@ -4,7 +4,7 @@
# PORT_WEBVIEW_GREP=<text> runs the checks whose name contains it. Run on the Studio.
set -uo pipefail
cd "$(dirname "$0")/../.."
-REF=${REF:-$HOME/Developer/vscode-ref}
+REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
(cd native && cargo build --release -q -p app) || exit 1
source port/tools/gui-lock.sh
tests=$PWD/port/fixtures/extensions/${FIXTURE:-webview-tests}