Skip to content

Visual Studio Code, rebuilt in Rust

Rust

chore(port): move upstream to the 1.148.0 tag

rokartura8ea75a6dc56
diff --git a/port/ledger.md b/port/ledger.md
index 0e5e2d350f7..22e5dedbef6 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -103,7 +103,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| M24 Windows | port/tools/windows/code.iss:1 | open | [windows M] user setup (`{userpf}\<dirName>`, `addtopath`, Start menu entry, file associations as code.iss) built with Inno Setup on the runner; unsigned (the Windows signing decision). | the setup installs silently, `<applicationName> --version` runs from a new shell's PATH, uninstall removes it |
| M24 Windows | .github/workflows/windows.yml:1 | open | [windows S] x64 on `windows-latest`, arm64 on `windows-11-arm`, by hand (`workflow_dispatch`), uploading the zips, setups and feed entries. | one dispatched run green for both architectures |
| M21 uplift | setup: reference | done | On the Studio: `~/Developer/vscode-ref-1.148.0`, an APFS copy (`cp -c`) of `~/Developer/vscode-ref` checked out at `1.148.0`, `pnpm install` and `pnpm run compile` (it and its extensions, port/notes.md "Reference"), then `port/tools/fetch-builtin-extensions`. `~/Developer/vscode-ref` stays at 1.147.0 while milestones 16 and 20 verify against it; the reference tools take the new one through `REF` (and `VSCODE_GPUI_EXTENSIONS` where they default to the old one's extensions). The GUI VMs share only `~/Developer/vscode-ref`, so 1.148.0 GUI runs need the host lane. | `~/Developer/vscode-ref-1.148.0/package.json` names 1.148.0; `REF=~/Developer/vscode-ref-1.148.0 port/tools/ref-screenshot /tmp/m21-ref dark` draws the empty workbench (2026-12-01) |
-| M21 uplift | setup: upstream checkout | later | `git -C upstream fetch origin tag 1.148.0 --no-tags`, then `git -C upstream checkout 1.148.0` (1.148.0 is not a descendant of 1.147.0: each release is its own branch). 1.148.0 does not change the files that the 9 `port/patches/*.patch` and the `product.json` overlay touch. Rebuild the extension host. | `git -C upstream apply --check port/patches/*.patch`; `port/tools/build-exthost` |
+| M21 uplift | setup: upstream checkout | done | `upstream/` checked out at `1.148.0` (1.148.0 is not a descendant of 1.147.0: each release is its own branch; `GIT_LFS_SKIP_SMUDGE=1`, the LFS files are Copilot test caches); the Studio mirror links it to `~/Developer/vscode-ref-1.148.0`. 1.148.0 does not change the files that the 8 `port/patches/*.patch` and the `product.json` overlay touch (`git diff 1.147.0 1.148.0` of them is empty). Extension host rebuilt. | `git -C upstream apply --check port/patches/*.patch`: all 8 apply; `port/tools/build-exthost`: 683 modules bundled (2026-12-01) |
| M21 uplift | setup: proxy ids | later | 1.148.0 appends `MainThreadRemoteAgentHosts` to `MainContext`, so every `ExtHostContext` id after it moves by one: rerun `bun port/tools/gen-proxy-ids.ts`. The port answers the new proxy as inert, the same as the other removed agent proxies. | `cargo test -p exthost`; exthost-probe 30/30 on Bun and Node |
| M21 uplift | setup: reference dumps | later | Rerun `port/tools/dump-settings`, `ref-commands`, `ref-contextmenu`, `ref-menubar`, `ref-hover` and `ref-dom`. They bring in without code: `workbench.editor.newTabButton` (renamed from `workbench.editor.experimental.newTabButton`), the removed `multiDiffEditor.experimental.fileList`, the new `update.enableEarlyStaging`, `markdown.editor.initialMode` and `workbench.editor.experimental.emptyEditorHintOpenInMarkdownEditor`. | `port/tools/settings-check` lists the new settings and not the removed one |
| M21 uplift | setup: baselines | later | Refresh the pixel-check baseline and `port/results/api-tests-reference.md`. 1.148.0 adds `browser.tools.test.ts` cases (integrated browser, removed) and an `http.noProxy` step in `proxy.test.ts` (row extension/vscode-api-tests). | api-tests reference numbers for 1.148.0 in port/results/api-tests-reference.md |
diff --git a/port/notes.md b/port/notes.md
index 9ba9fa47338..93a828cf117 100644
--- a/port/notes.md
+++ b/port/notes.md
@@ -5,9 +5,9 @@ Decisions, traps and findings that the ledger rows point to. Newest at the end o
## Layout
- `native/`: Cargo workspace. `crates/exthost` (framing, RPC, handshake, init data, session dispatcher, `exthost-probe` binary), `crates/app` (`code-gpui`, the GPUI app).
-- `upstream/` (not committed, milestone 22): VS Code checked out at the 1.147.0 tag, never edited; every build step and tool reads it through `VSCODE_SRC` (default `upstream/`; `native/vscode_src.rs`, `port/tools/vscode-src.sh`, `port/tools/vscode-src.ts`). Setup and build: README.md. A Studio mirror without its own `upstream/` gets a link to `~/Developer/vscode-ref-1.148.0` (`port/tools/studio`).
+- `upstream/` (not committed, milestone 22): VS Code checked out at the 1.148.0 tag, never edited; every build step and tool reads it through `VSCODE_SRC` (default `upstream/`; `native/vscode_src.rs`, `port/tools/vscode-src.sh`, `port/tools/vscode-src.ts`). Setup and build: README.md. A Studio mirror without its own `upstream/` gets a link to `~/Developer/vscode-ref-1.148.0` (`port/tools/studio`).
- `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.147.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>`.
+- 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`.