Visual Studio Code, rebuilt in Rust
Rust
docs(results): record the second M20 completion check
rokartur060ab2e10f2e
diff --git a/port/ledger.md b/port/ledger.mdindex cb9a5cdcf82..f6e0ebccc7f 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -34,7 +34,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,| Milestones | M17 webviews and notebooks | done | A WKWebView embedded in the GPUI window for webview panels, webview views and custom editors, with the upstream message and resource protocol; Markdown preview, image/media preview, simple browser, editor insets; notebooks (ipynb) with renderers and kernels. Open gaps: the gaps column of its unit rows. | api-tests `webview.test`, `customEditor` and `notebook*.test` cases pass as in the reference; Markdown preview of the fixture README draws next to its source. || Milestones | M18 extensions: install, update, gallery | done | Extensions view backed by Open VSX, install/uninstall/update/disable, VSIX install, signature and checksum checks, recommendations, ESM extensions added after startup on Bun, language packs and display language. | Installing an extension from Open VSX activates it without restart (an ESM one included); api-tests `extensions.test` pass as in the reference. PORT_GALLERY=1 port/tools/extensions-check: 6 ok; MOCHA_GREP="vscode server cli" port/tools/api-tests: its one test pending, as in the reference (remote only). || Milestones | M19 product shell, privacy, accessibility, release | done | Welcome page and walkthroughs, update channel for the port's own builds, relaunch, splash, accessibility (VoiceOver through GPUI's accessibility tree, accessibility signals, high-contrast checks), process explorer and performance views, telemetry inert end to end, packaged and signed `.app`. Open gaps: the gaps column of its unit rows. | The telemetry source search (no telemetry endpoint string reachable) and network capture (zero outbound requests in a 10 min session with no user action) pass; VoiceOver reads the editor line and the Explorer rows; the signed `.app` passes `spctl -a`; benchmark rerun against a packaged reference build. |-| Milestones | M20 parity | in progress | Nothing new; close the gaps the earlier milestones left (the gaps column of the unit rows). Completion check in port-m20-check: api-tests met (318/28/0 in the target's suites, 4/0/0, port/results/api-tests.md); pixel-check met, the remaining differences are the causes in port/results/pixels.md; ledger not met: the `ported` rows, each with its open gaps. Closed in workbench/contrib/comments: comment threads in diff and multi diff editors, floating ones included, with the floating style's `FloatingWidgetRoom`. | `port/tools/api-tests` gives 318/28/0 (folder) and 4/0/0 (workspace): the reference baseline 356/46/0 less the suites and tests of removed features (chat, lm, the integrated browser, `env.remoteName`) (port/results/api-tests-reference.md); pixel-check of every window has no difference beyond anti-aliasing and the causes listed in `port/results/pixels.md`; every ledger row is `verified`, `removed` or `n/a`. |+| Milestones | M20 parity | in progress | Nothing new; close the gaps the earlier milestones left (the gaps column of the unit rows). Completion check in port-m20-check, second run at d9dfa874f63: api-tests met (319/27/0 in the target's suites, #49125 run in a focused window, and 4/0/0; port/results/api-tests.md); pixel-check met after the Go Back color fix, the remaining differences are the causes in port/results/pixels.md; ledger not met: workbench/contrib/testing (M16) is the one `ported` row. Closed in workbench/contrib/comments: comment threads in diff and multi diff editors, floating ones included, with the floating style's `FloatingWidgetRoom`. | `port/tools/api-tests` gives 318/28/0 (folder) and 4/0/0 (workspace): the reference baseline 356/46/0 less the suites and tests of removed features (chat, lm, the integrated browser, `env.remoteName`) (port/results/api-tests-reference.md); pixel-check of every window has no difference beyond anti-aliasing and the causes listed in `port/results/pixels.md`; every ledger row is `verified`, `removed` or `n/a`. || Milestones | M20 multi-instance code editor | done | Upstream every diff side, multi diff file side, notebook cell and walkthrough snippet is its own CodeEditorWidget. The port keeps one focused code editor per group bound to `text_area`, `editor_focus`, the input handler and `editors.active()`, as upstream's one focused widget takes the keys; every other code editor of the group keeps its own viewport, text area cells, minimap layout and find widget (code_editors.rs `parked`, `finds`) and draws through `text_area` as an inactive group's editor, with its own hover, color decorators, bracket guides and overview ruler; a press focuses it, a wheel scrolls it. Through it: the diff editor's original side (focus, selection, find), the multi diff file sides (the modified side takes typing and undo, its diff follows), notebook cells and playground snippets. | `cargo test -p app -- a_file_side_is_a_code_editor every_drawn_file_side the_original_side_takes_the_focus_selection_and_find each_group_keeps_its_own_find_widget the_focused_cell_is_the_code_editor unfocused_cell unfocused_snippet the_host_sees_the_code_editors_of_the_rendered_cells part_view::`: 17 passed; port/notes.md milestone 20, Multi-instance code editor || 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. Every setup step and work item is an `M21 uplift` row below, with its check. Steps: 1) session 1 does the setup rows and milestones 7 to 11. 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 (the README's Build section at 96b0e476067). `git ls-tree main` holds no upstream file. |diff --git a/port/results/api-tests.md b/port/results/api-tests.mdindex 7e0f419d14b..5dd28a7b2b3 100644--- a/port/results/api-tests.md+++ b/port/results/api-tests.md@@ -65,6 +65,20 @@ On the Studio at 3f4cfaea1d0 (branch port-m20-check), `cargo build --release -pThe target is met exactly: #49125 is pending again, as in the reference run, because the Studio window had no focus. The first run gave 321/45/36: `custom root certificate` failed ("self signed certificate") in three runs of `MOCHA_GREP='network proxy'`. The binary ran the extension host bundle of another mirror: this mirror was seeded as a copy of port-src-integrate, and the copied build scripts of app, diff and files kept that mirror's `VSCODE_SRC` (their dep info watches its `native/vscode_src.rs`), so `exthost_entry` loaded port-src-integrate's stale `out-exthost/`. `port/tools/studio` now drops those build script dirs when it seeds a mirror; after that `strings vsrustium` names only this mirror, and the test passes (2 passing, 1 pending, 0 failing).+### Second completion check, milestone 20++On the Studio at d9dfa874f63 (vsrustium/main after the Linux platform, debug memory, custom editor diff, testing results and breadcrumbs merges) with the Go Back color fix (port/results/pixels.md), `cargo build --release -p app && port/tools/build-exthost && port/tools/api-tests`, no MOCHA_GREP, host lane.++| suites | passing | pending | failing | not reached |+|--------|---------|---------|---------|-------------|+| api-folder, all (exit 1 after 64 s) | 322 | 45 | 35 | 0 |+| removed features: chat, chat - browser tools, chat - run_in_terminal, lm, vscode API - browser, browser CDP | 3 | 18 | 34 | 0 |+| `env.remoteName` (asserts the removed `vscode.github-authentication`) | 0 | 0 | 1 | 0 |+| the target's suites | 319 | 27 | 0 | 0 |+| api-workspace (exit 0 after 1 s) | 4 | 0 | 0 | 0 |++The target is met: every test of the target's suites ran and none fails. The one test more passing and one fewer pending than 318/28/0 is #49125, which ran because the Studio window had focus this time (see the parity run above); no regression since the first completion check.+## Milestone 11: tree views and editor groups`MOCHA_GREP="vscode API - tree|vscode API - window" SUITE_TIMEOUT=600 port/tools/api-tests` on the Studio, the working tree after the panel commit d1e955ab4cf with tree views and decorations: api-folder 33 passing, 0 pending, 11 failing (exit 1 after 10s). All four tree.test.ts cases pass (`TreeView - element already registered`, `... after rapid root refresh`, `... during switch and update`, `... after refresh`). The 11 failing are window.test.ts cases that open editors in view columns, which `$tryShowTextDocument` ignored then, plus `Tabs - vscode.open & vscode.diff` (fake-fs, `_workbench.diff`) and `showWorkspaceFolderPick` (`_workbench.pickWorkspaceFolder` not found).diff --git a/port/results/pixels.md b/port/results/pixels.mdindex debc043410b..c7bb7fdf925 100644--- a/port/results/pixels.md+++ b/port/results/pixels.md@@ -2,6 +2,27 @@`port/tools/pixel-check` on the Mac Studio: the reference workbench captured through CDP (`port/tools/ref-screenshot`, 1024x768 at 2x, frozen: solid cursor, reduced motion, no startup editor, `chat.disableAIFeatures`) against the port's frame read back from Metal (`code-gpui --theme <id> --screenshot`, built with `--features screenshot`). Neither capture needs Screen Recording permission. Diff: `native/crates/pixeldiff`, threshold 0, anti-aliased pixels counted apart.+## Second completion check, milestone 20++Full `port/tools/pixel-check` on the Studio host lane at d9dfa874f63 (vsrustium/main), default 10 windows, before and after one fix.++| window | dark | light | hc | hclight |+|---|---|---|---|---|+| empty | 123853 | 123689 | 120493 | 120464 |+| folder | 124161 | 123939 | 120842 | 120719 |+| file | 5439 | 4947 | 2936 | 3622 |+| main | 5346 | 4837 | 3973 | 3440 |+| multiroot | 124271 | 123979 | 120937 | 120760 |+| folded | 8017 | 15704 | 5010 | 6670 |+| find | 9045 | 15674 | 6483 | 14794 |+| quickopen | 38472 | 52935 | 6395 | 19837 |+| split | 8474 | 8609 | 5077 | 9746 |+| panel | 12105 | 12694 | 19839 | 22452 |++- Fixed, a regression: the command center's Go Back and Go Forward drew in `commandCenter.foreground` while disabled (4caa27a5904, after modernUI commandCenter.css), 75 to 139 pixels in every window (quickopen dark and light: +1001 and +1363, the frosted glass over the brighter arrows). The rule colors the `.action-label`; the codicon is its `::before`, which actionbar.css's `.disabled .action-label:not(.icon)::before` colors in `disabledForeground` (`port/tools/ref-dom` on the reference: label `rgb(204, 204, 204)`, `::before` `rgba(204, 204, 204, 0.5)`). workbench.rs `navigation_icon_color`; `cargo test -p app go_back_without_history_draws_in_the_disabled_foreground`. Before the fix: empty 123992/123828/120631/120601, file 5578/5086/3074/3759, quickopen 39475/54294/6395/19837.+- empty, folder, file, multiroot, find and split are now the first completion check's numbers exactly; main, folded and panel are at or below them (main hc was 2549 in the run before the fix, 1424 lower; not chased). quickopen light, hc and hclight are 4, 5 and 5 above (52931, 6390, 19832), the same in both runs; not located, below the anti-aliasing scale of the window (34000 to 39000 anti-aliased pixels).+- No new cause: the causes below (the letterpress, the remote indicator) and the regions of the earlier tables are what is left.+## Completion check, milestone 20Full `port/tools/pixel-check` on the Studio host lane in port-m20-check (fc23e8038d9 and the fix below), default 10 windows. empty, folder and multiroot are from a second run (`WINDOWS="empty folder multiroot"`) after the fix.