Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(ledger): record the milestone 24 decisions Artur confirmed

rokartur86a11d6ac92b
diff --git a/port/ledger.md b/port/ledger.md
index 4a2022686c0..ed67d48ba94 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -14,6 +14,9 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| 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 | done | Milestone 24 ships unsigned: no Authenticode certificate; SmartScreen warns on first run. | |
+| Decisions (Artur) | Windows webview | done | WebView2 through webview2-com directly, not wry, as Linux uses webkit2gtk directly: the host page, resource scheme and message bridge stay in webview.rs, a thin `webview/windows.rs` beside `macos.rs` and `linux.rs`. | |
+| Decisions (Artur) | Menu bar and keybinding tables | done | Milestone 24 builds the in-window menu bar and the per-platform keybinding mechanism (default tables, the `win` and `linux` rule keys, labels) with the Windows table; the Linux table is a hook the M23 owner fills; macOS and Linux behave as before until then. | |
+| Decisions (Artur) | Windows updates | done | Windows updates start as a download link, as on Linux; the in-place update (`setup /verysilent /update`) is a later M24 row. | |
| Decisions (Artur) | merge gate additions | decided | A merge that touches window or startup code passes `port/tools/run-app-check` on the Studio lane (exits 1 with no app window). `/skill:retro` only when the same class of mistake comes back, not per merge. | Artur's answer |
| 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 |
@@ -68,21 +71,22 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| M24 Windows | app/src/terminal/profiles.rs:133 | open | [windows M] Windows terminal profiles (terminalProfiles.ts `detectAvailableWindowsProfiles`): PowerShell (pwsh, then Windows PowerShell), Command Prompt, Git Bash, WSL distributions; `terminal.integrated.defaultProfile.windows`; shell integration for pwsh (shellIntegration.ps1). | `cargo gc test -p app terminal::profiles` on the windows runner |
| M24 Windows | app/src/file_dialog.rs:9 | open | [windows M] Win32 open and save dialogs (IFileOpenDialog, IFileSaveDialog) with title, filters, default path, folder pick and multi-select, as Chromium's select_file_dialog_win.cc gets them from Electron's file_dialog_win.cc (filter specs `*.ts;*.js`, `All Files (*.*)`). | `cargo gc test -p app file_dialog` on the host for the filter specs; the dialog not run on a desktop |
| M24 Windows | app/src/dialog.rs:5 | open | [windows M] native message box through TaskDialogIndirect, as Electron's message_box_win.cc: buttons in the order dialogs.ts `massageMessageBoxOptions` gives Windows, the checkbox as the verification text, owner window modal. | `cargo gc test -p app dialog` on the host for the button order; the dialog on the windows runner |
-| M24 Windows | app/src/webview.rs:11 | open | [windows L] webviews through WebView2 as child windows of GPUI's HWND, with the host page, resource scheme and message bridge `webview.rs` shares with macOS and Linux: panels and views, editor insets, notebook outputs, extension details, release notes. The WebView2 runtime ships with Windows 10 and 11. | `FIXTURE=webview-tests` smoke on the windows runner; `cargo gc test -p app webview` there |
+| M24 Windows | app/src/webview.rs:11 | open | [windows L] webviews through WebView2 (webview2-com, decision "Windows webview") as child windows of GPUI's HWND, with the host page, resource scheme and message bridge `webview.rs` shares with macOS and Linux: panels and views, editor insets, notebook outputs, extension details, release notes. The WebView2 runtime ships with Windows 10 and 11. | `FIXTURE=webview-tests` smoke on the windows runner; `cargo gc test -p app webview` there |
| M24 Windows | exthost/src/lib.rs:31 | open | [windows L] extension host connection over a named pipe (`\\.\pipe\vscode-ipc-<uuid>-sock`, ipc.net.ts `createRandomIPCHandle` on Windows) instead of a Unix socket; Bun's `net.connect` takes the pipe path. | `cargo gc test -p exthost` on the windows runner: the handshake test |
| M24 Windows | app/src/launch.rs:5 | open | [windows M] single instance and second-instance arguments over a named pipe (main.ts `mainIPCHandle` on Windows). | `cargo gc test -p app launch` on the windows runner |
| M24 Windows | app/src/cli.rs:7 | open | [windows M] the command line on Windows: `bin\<applicationName>.cmd` from resources/win32/bin/code.cmd, stdin read and terminal width through the console API. | `cargo gc test -p app cli` on the windows runner |
| M24 Windows | exthost/src/main_thread_secret_state.rs:19 | open | [windows S] secrets in Credential Manager (keyring), with keytar's target name `<service>/<account>` so VS Code's stored secrets keep their keys. | `cargo gc test -p exthost secret` on the windows runner |
| M24 Windows | exthost/src/request.rs:9 | open | [windows M] extension and gallery HTTP with the system proxy (WinHTTP's IE proxy settings, Chromium's ProxyConfigServiceWin), `http.proxy` and the `<local>` bypass. | `cargo gc test -p exthost request` on the windows runner |
-| M24 Windows | app/src/workbench/menubar.rs:173 | open | [windows L] menu bar in the custom title bar (menubarControl.ts `CustomMenubarControl`, `window.titleBarStyle: custom`, `window.menuBarVisibility`) and the window controls (minimize, maximize, close) titlebarPart.ts draws on Windows. Shared with the M23 Linux menubar row. Windows shows now: no menu bar. | `cargo gc test -p app menubar` on the host; a ui-pair against the reference not possible (macOS reference) |
-| M24 Windows | app/src/keybindings.rs:86 | open | [windows L] Windows keybindings: `default-win` table, the `win` key of extension and user rules, Windows labels (keybindingLabels.ts for `OperatingSystem.Windows`: `Ctrl+Shift+P`, `Windows`, `win`), and windowsKeyboardMapper.ts for layouts. Shared mechanism with the M23 Linux keybindings row. Windows shows now: the macOS table on GPUI's platform modifier (Ctrl). | `cargo gc test -p app keybindings` on the host with the Windows table |
+| M24 Windows | app/src/workbench/menubar.rs:173 | open | [windows L] menu bar in the custom title bar (menubarControl.ts `CustomMenubarControl`, `window.titleBarStyle: custom`, `window.menuBarVisibility`) and the window controls (minimize, maximize, close) titlebarPart.ts draws on Windows. The shared mechanism is M24's (decision "Menu bar and keybinding tables"); it unblocks the M23 Linux row app/src/workbench/menubar.rs:173. Windows shows now: no menu bar. | `cargo gc test -p app menubar` on the host; a ui-pair against the reference not possible (macOS reference) |
+| M24 Windows | app/src/keybindings.rs:86 | open | [windows L] Windows keybindings: `default-win` table, the `win` key of extension and user rules, Windows labels (keybindingLabels.ts for `OperatingSystem.Windows`: `Ctrl+Shift+P`, `Windows`, `win`), and windowsKeyboardMapper.ts for layouts. The per-platform mechanism is M24's (decision "Menu bar and keybinding tables"), with a Linux table hook; it unblocks the M23 Linux row app/src/keybindings.rs:86. Windows shows now: the macOS table on GPUI's platform modifier (Ctrl). | `cargo gc test -p app keybindings` on the host with the Windows table |
| M24 Windows | app/src/keyboard_layout.rs:7 | open | [windows M] keyboard layout info and raw mapping (native-keymap's Windows `GetKeyboardLayout`, `MapVirtualKeyEx`, `ToUnicodeEx`). | `cargo gc test -p app keyboard` on the windows runner |
| M24 Windows | app/src/clipboard.rs:91 | open | [windows M] clipboard file lists, HTML and custom formats (Chromium's registered clipboard formats); GPUI's Windows clipboard has text and images. Windows shows now: text only. | `cargo gc test -p app clipboard` on the windows runner |
| M24 Windows | files/src/disk.rs:58 | open | [windows M] file system on NTFS: read-only through `FILE_ATTRIBUTE_READONLY`, file and directory symlinks, case-insensitive path compare, Recycle Bin (trash crate), ReadDirectoryChangesW (notify). | `cargo gc test -p files` on the windows runner |
| M24 Windows | app/src/editor_history.rs:59 | open | [windows L] drive-letter paths and file URIs (`file:///c%3A/...`, uri.ts `fsPath` on Windows, backslash separators in labels): the per-file `file_uri` helpers go through one conversion. | `cargo gc test -p app uri` on the host for the conversion; api-tests on the windows runner |
| M24 Windows | app/src/settings_import.rs:28 | open | [windows S] settings import from `%APPDATA%\Code`, `%APPDATA%\Cursor`, `%APPDATA%\VSCodium`, extensions from `%USERPROFILE%\.vscode\extensions` and the others. | `cargo gc test -p app settings_import` on the windows runner |
| M24 Windows | app/src/workbench/shell_command.rs:70 | open | [windows S] no Shell Command on Windows (upstream has it on macOS only): the user setup puts `{app}\bin` on the user PATH (code.iss `addtopath`), the zip leaves PATH alone. | the commands absent from the palette on the windows runner; the installer row's check |
-| M24 Windows | app/src/update/install.rs:21 | open | [windows M] updates as a download link, as on Linux, until the user setup can update in place (updateService.win32.ts runs the setup with `/verysilent /update`). | `cargo gc test -p app update::` on the host |
+| M24 Windows | app/src/update/install.rs:21 | open | [windows M] updates as a download link, as on Linux (decision "Windows updates"). | `cargo gc test -p app update::` on the host |
+| M24 Windows | app/src/update/install.rs:22 | later | [windows M] in-place update through the user setup, as updateService.win32.ts: download the setup, run it with `/verysilent /update`, restart. | the runner's installed app updates from one feed version to the next |
| M24 Windows | app/src/shell_env.rs:5 | open | [windows S] no shell environment resolution on Windows (shellEnv.ts returns the process environment on win32). | `cargo gc test -p app shell_env` on the windows runner |
| M24 Windows | app/src/system_wide_keybindings.rs:13 | open | [windows S] system-wide keybindings through `RegisterHotKey` (Chromium's GlobalAcceleratorListenerWin). | `cargo gc test -p app system_wide` on the windows runner |
| M24 Windows | app/src/power.rs:9 | open | [windows M] powerMonitor: idle time (`GetLastInputInfo`), battery (`GetSystemPowerStatus`), lock, sleep and resume, power save blockers (`SetThreadExecutionState`). | `cargo gc test -p app power::` on the windows runner |