Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(ledger): ship the Windows build unsigned

rokartur946ce9a4fabf
diff --git a/port/ledger.md b/port/ledger.md
index 0e4e7bcb580..70a059423ec 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -13,7 +13,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Decisions (Artur) | removed parts | decided | AI, Microsoft-service and telemetry parts and remote/tunnels are `removed` (41 rows); internal infrastructure and developer tools with no 1:1 counterpart (base/common, base/node, platform/instantiation, platform/observable, platform/webWorker, platform/gpu, platform/cssDev, editor/standalone, editor/contrib/gpu, workbench/contrib/screenshotTool) are `removed`, replaced by the native architecture; later: the integrated browser (`browserView`, `MainThreadBrowsers`) is `removed`, Simple Browser stays; the api-tests suites of removed features leave the milestone 20 target. | |
| Decisions (Artur) | n/a parts | decided | Upstream test infrastructure (`base/test`, `editor/test`, `platform/test`, `workbench/services/driver`) and the Electron process, IPC and DOM layers (`base/browser` `base/parts` `platform/domWidget` `platform/ipc` `platform/protocol` `platform/sandbox` `platform/sharedProcess` `platform/utilityProcess`) are `n/a`. | |
| Decisions (Artur) | sharedProcess and utilityProcess services | done | `workbench/services/sharedProcess` and `workbench/services/utilityProcess` are not `n/a` (Artur); documented 1:1 by what replaces each channel. | port/notes.md milestone 20 |
-| Decisions (Artur) | Windows signing | waiting on Artur | Authenticode certificate for milestone 24. | |
+| Decisions (Artur) | Windows signing | done | Milestone 24 ships unsigned: no Authenticode certificate; SmartScreen warns on first run. | |
| Decisions (Artur) | merge gate additions | waiting on Artur | `/skill:retro` and a window-open check (count of app windows, not only "process alive"). | |
| Milestones | M1 extension host seam | done | Rust parent, upstream framing and RPC, Bun host, 30/30 built-ins activate. The session.rs fallback is audited per method (port/notes.md); observable methods are gap entries of their MainThread* rows. | `exthost-probe`, `port/results/benchmark.md` |
| Milestones | M2 empty workbench | done | Title bar, activity bar, letterpress, status bar in 3 themes. | `port/results/pixels.md` milestone 2 |
@@ -39,7 +39,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Milestones | M21 uplift to VS Code 1.148.0 | later | Postponed by Artur. Starts after milestones 11 to 20 close on 1.147.0 and after milestone 22; until then every reference, baseline and ui-pair stays on 1.147.0. Plan: `port/plans/uplift-1.147.0-to-1.148.0.md`, short form in `port/notes.md` "VS Code 1.148.0" (`bun port/tools/uplift-diff.ts 1.148.0`, every change triaged; refreshed against the ledger with 17 rows still open). Of about 209,000 changed upstream lines, 6,548 are ported: about 3,500 Rust work, 1,977 lines of grammar data and colorize fixtures, about 770 that arrive with upstream or the reference's extensions, and 308 of the floating comment style, a gap older than the uplift. 100,284 lines are skipped: AI, chat, sessions, agent host, remote, GitHub sign-in, experiments, telemetry and the integrated browser. The empty-editor hint rewrite is a move with no visible change. Largest items: SCM providers hidden and shown at runtime (the new `$setSourceControlsHidden`, used by the git extension through `scmProviderOptions`); `$getWorkspaceFolderLocations` for the git extension's `workspaceFolderLocations` proposal (primary locations only); the add-tab menu and wrapped tabs; the comment widgets; the multi diff file list as a split button; folder merge on drop in the Explorer; the remove-folder vetoes (workspace editing, tasks, debug); named pipes in the disk provider; Debug Console completion ranges; theme and modern UI color changes. Steps: 1) session 1 does the setup and milestones 7 to 11. Setup: the 1.148.0 reference on the Studio; `upstream/` moved with `git -C upstream checkout 1.148.0`; the 9 upstream patches checked with `git apply --check` (1.148.0 does not touch those files); the extension host rebuilt; `gen-proxy-ids.ts` (the ids move after the new `MainThreadRemoteAgentHosts`); the reference dumps, the baselines and the version bump. 2) Session 2 does milestones 12 and 14: files, workspace, the remove-folder vetoes and SCM. 3) Session 3 does milestones 13 and 15 to 19. Sessions 2 and 3 can run in parallel after session 1. | The ledger names 1.148.0. Every row the diff touches is `verified`, `removed` or `n/a` again, or keeps its 1.147.0 status where the gap is older than the uplift (the floating comment style). The full check passes against the 1.148.0 reference. |
| Milestones | M22 split the port from the VS Code tree | done | Artur: `main` holds the Rust port only (`native/`, `port/`, the port's skills, README and licenses) and upstream VS Code is `upstream/` (ignored), checked out detached at the followed tag, never edited; an uplift moves it with `git -C upstream checkout <tag>`. Every build step and tool reads upstream from `upstream/` or the path in `VSCODE_SRC`. Decision (Artur): `main` kept its history: a fast-forward by the port's branch plus one commit that removes the VS Code tree; no orphan commit, no `git filter-repo`, no force-push. Port version: the followed VS Code version is `package.json`'s `version` in `VSCODE_SRC`, which `uplift-diff.ts` reads as its default `from` and package-app as its default `VERSION`; `VERSION` in main.rs (the API version extensions see) repeats it. | Steps 1 and 2 (branch `port-m22-split`): `VSCODE_SRC` resolved by `native/vscode_src.rs` (build scripts of app, diff, files; `env!("VSCODE_SRC")`), `port/tools/vscode-src.sh` and `port/tools/vscode-src.ts`; the dev app root is `VSCODE_SRC` (runtime env over the build's value), the host bundle stays in the checkout's `out-exthost/`; the upstream edits are `port/patches/src-*.patch` (build-exthost, on a copy in `out-exthost/build`) and `extensions-*.patch` (package-app), `port/product.json` is the overlay. Step 3 (branch `port-release`): one commit `git rm`s the VS Code tree (21458 files); `ThirdPartyNotices.txt` ships from `VSCODE_SRC`, `LICENSE.txt` from the repo root; `exthost`'s `proposed_api.rs`, `run-app-check`'s extensions default and the dev host's AMD modules (`build-exthost` links `node_modules` beside `out-exthost` to `VSCODE_SRC`'s) read `VSCODE_SRC`; a Studio mirror of a tree without `src/` links `upstream` to `~/Developer/vscode-ref` (`port/tools/studio`). Step 4: a clean clone builds, tests, packages and passes the full check (README Build section). `git ls-tree main` holds no upstream file. |
| Milestones | M23 Linux build | in progress | Branch `port-linux` (a Linux build container on the Studio). The app is macOS-only today: 24 files of `native/crates` call AppKit, Foundation, WebKit, Security or Core Foundation directly (objc2, core-foundation, security-framework); GPUI (`native/vendor/wu`) already has its Linux platform (Wayland and X11). Every macOS call goes behind `cfg(target_os = "macos")` with the Linux counterpart VS Code uses there, in the same function where the two are a few lines, in a `platform/linux.rs` beside a `platform/macos.rs` where they are not: webview (WebKitGTK through wry), file dialogs (xdg-desktop-portal, rfd), the application menu (drawn in the window: `window.titleBarStyle`, `window.menuBarVisibility`), clipboard and the find pasteboard (GPUI's), proxy (`http.proxy` and the system proxy via reqwest instead of NSURLSession), secrets (Secret Service, keyring), `code` CLI install (`~/.local/bin`), file watching (inotify, notify), the updater (a download link, as `update.mode` on a tar.gz), and the settings import paths (`~/.config/Code`, `~/.config/Cursor`, `~/.config/VSCodium`). Packaging: `port/tools/package-linux` writes `VSRustium-<version>-linux-<arch>.tar.gz` and the `linux-<arch>.json` and `linux-<arch>-prerelease.json` feed entries (port/notes.md milestone 23); deb and AppImage after it. Builds in a Linux container on the Studio (`docker`, linux/arm64) for the build and the unit tests; linux-x64 on a GitHub Actions `ubuntu` runner once arm64 is green. | `cargo build --release -p app` and the area tests pass on Linux arm64 and x64; the app opens a folder, edits, saves, runs an extension (the exthost handshake, emmet and git activate) and shows a webview under Xvfb or Wayland in the container; `v1.147.0-insider` carries `VSRustium-1.147.0-insider-linux-arm64.tar.gz` and `VSRustium-1.147.0-insider-linux-x64.tar.gz`; the macOS build is unchanged (its area tests and api-tests as before). |
-| Milestones | M24 Windows build | later | After milestone 23, on the same seams: WebView2 (wry), the Win32 file dialogs, the in-window menu bar and custom title bar, Credential Manager (keyring), the user-setup install path and `code` on PATH, `%APPDATA%\Code` settings import, ConPTY for the terminal (alacritty_terminal has it), an x64 and arm64 zip and a user installer, Authenticode signing (needs a certificate: the Windows signing decision). Builds on a GitHub Actions `windows` runner. | As milestone 23, for win32-x64 and win32-arm64. |
+| Milestones | M24 Windows build | later | After milestone 23, on the same seams: WebView2 (wry), the Win32 file dialogs, the in-window menu bar and custom title bar, Credential Manager (keyring), the user-setup install path and `code` on PATH, `%APPDATA%\Code` settings import, ConPTY for the terminal (alacritty_terminal has it), an x64 and arm64 zip and a user installer, no Authenticode signing (the Windows signing decision). Builds on a GitHub Actions `windows` runner. | As milestone 23, for win32-x64 and win32-arm64. |
| Milestones | M25 virtual workspaces | later | Artur: its own milestone after M20, not part of the gap audits. A folder of a non-file scheme (`.code-workspace` `uri` folders, `--folder-uri`, `vscode.openFolder` with an extension file system provider scheme) kept as a URI; every reader of workspace folders (173 `.folders` uses in 70 files: explorer, search, quick open, terminal cwd, tasks, git, watcher, settings layers, trust) goes through the file system providers; the workspace marked virtual, `virtualWorkspaces: false` extensions disabled with the `notSupportedInWorkspace` message (config/workspace.rs:101, port/notes.md provider entries deferred until virtual workspaces). | not started |
| M23 Linux | app/src/webview/linux.rs:14 | open | [linux L] webviews through WebKitGTK (wry): webview panels and views, editor insets, notebook outputs, extension details, release notes. Linux shows now: no webview: `supported()` is false and each webview surface stays empty. | |
| M23 Linux | exthost/src/main_thread_secret_state.rs:46 | open | [linux M] secrets in the Secret Service (libsecret). Linux shows now: secrets kept in memory, lost on quit. | |