Visual Studio Code, rebuilt in Rust
Rust
docs(ledger): close M20 on the third completion check
rokarturfe3c57024385
diff --git a/port/ledger.md b/port/ledger.mdindex 06fe222215e..d428aa44ab3 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -37,7 +37,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, 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 then: workbench/contrib/testing (M16) was the one `ported` row, `verified` since inline coverage. 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 | done | Nothing new; close the gaps the earlier milestones left (the gaps column of the unit rows). Third completion check at 99caa36b7ed, fresh release build, 1.147.0 reference: api-tests 318/28/0 in the target's suites and 4/0/0 (port/results/api-tests.md); pixel-check of the 10 windows in 4 themes has no regression, the differences are the causes in port/results/pixels.md (no new cause); every unit row is `verified`, `removed` or `n/a`. 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 5dd28a7b2b3..a15df8c1bd1 100644--- a/port/results/api-tests.md+++ b/port/results/api-tests.md@@ -79,6 +79,20 @@ On the Studio at d9dfa874f63 (vsrustium/main after the Linux platform, debug memThe 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.+### Third completion check, milestone 20++On the Studio at 99caa36b7ed (vsrustium/main after testing results, inline and view coverage, the Windows seams and the README and benchmark), `port/tools/build-exthost && cargo gc build --release -p app` in a build slot, then `port/tools/api-tests` in the host lane, no MOCHA_GREP.++| suites | passing | pending | failing | not reached |+|--------|---------|---------|---------|-------------|+| api-folder, all (exit 1 after 102 s) | 321 | 46 | 35 | 0 |+| removed features: chat 1/3/4, chat - browser tools 0/0/6, chat - run_in_terminal 0/12/3, lm 0/0/5, vscode API - browser 2/3/15, browser CDP 0/0/1 | 3 | 18 | 34 | 0 |+| `env.remoteName` (asserts the removed `vscode.github-authentication`) | 0 | 0 | 1 | 0 |+| the target's suites | 318 | 28 | 0 | 0 |+| api-workspace (exit 0 after 1 s) | 4 | 0 | 0 | 0 |++The target is met exactly, as in the first completion check: #49125 is pending, the Studio window had no focus.+## 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 c7bb7fdf925..3170d93c77e 100644--- a/port/results/pixels.md+++ b/port/results/pixels.md@@ -2,6 +2,26 @@`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.+## Third completion check, milestone 20++Full `port/tools/pixel-check` on the Studio host lane at 99caa36b7ed (vsrustium/main after testing results, inline and view coverage, the Windows seams and the README and benchmark), release build with `--features screenshot` made in a build slot before the lane, 1.147.0 reference (`~/Developer/vscode-ref`).++| window | dark | light | hc | hclight |+|---|---|---|---|---|+| empty | 123853 | 123689 | 120493 | 120464 |+| folder | 124161 | 123939 | 120842 | 120719 |+| file | 5439 | 4947 | 2936 | 3622 |+| main | 5346 | 4837 | 2411 | 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 | 12106 | 12696 | 19843 | 22454 |++- 35 of the 40 counts are the second completion check's exactly; main hc is 1562 lower (it moves between runs: 2549, 3973). panel is 1, 2, 4 and 2 above (12105, 12694, 19839, 22452) and below the first completion check's (12209, 12782, 20041, 22667); not located, run-to-run noise of the terminal panel below its 50000 anti-aliased pixels.+- No regression and no new cause: what is left is the letterpress, the remote indicator and the regions of the earlier tables.+## Second completion check, milestone 20Full `port/tools/pixel-check` on the Studio host lane at d9dfa874f63 (vsrustium/main), default 10 windows, before and after one fix.