Visual Studio Code, rebuilt in Rust
Rust
docs(ledger): close theme-defaults gap with pixel-check, record status bar hover gaps
rokartur2d37693bb2f1
diff --git a/README.md b/README.mdindex a0822ad02f4..3a6d1945ed1 100644--- a/README.md+++ b/README.md@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V```mermaidpie showData- "verified" : 418- "ported" : 12+ "verified" : 417+ "ported" : 13"removed" : 126"n/a" : 28```@@ -25,13 +25,13 @@ pie showData| MainThread* shape (Rust side) | 58 | 1 | 30 | 0 | `████████████████████ 98%` || workbench service | 60 | 5 | 23 | 7 | `██████████████████░░ 92%` || src/vs/editor/contrib | 54 | 0 | 2 | 1 | `████████████████████ 100%` |-| workbench part | 11 | 0 | 2 | 0 | `████████████████████ 100%` |+| workbench part | 10 | 1 | 2 | 0 | `██████████████████░░ 91%` || extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` || cross-cutting check | 5 | 0 | 0 | 0 | `████████████████████ 100%` || src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |-| **all** | **418** | **12** | **126** | **28** | `███████████████████░ 97%` |+| **all** | **417** | **13** | **126** | **28** | `███████████████████░ 97%` |<!-- coverage:end -->`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.diff --git a/port/ledger.md b/port/ledger.mdindex 38cacda0c37..966d7406a44 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -360,7 +360,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/parts/partGrid | workbench part | M11 | verified | | workbench/layout.rs grid on split_view.rs (splitview.ts priorities, snap, visibility), workbench/part_grid.rs sashes, hidden parts, sizes and visibility in LayoutStateModel storage keys: cargo test -p app layout part_grid split_view (reference geometry at 1024x768, Cmd+B for the next open, sash drag, snap); ui-pair grid steps, port/results/layout.md || workbench/parts/sessions | workbench part | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/parts/sidebar | workbench part | M11 | verified | | Explorer and Search; compact activity bar for top and bottom (side_bar.rs) with every container the activity bar shows: built-in, Testing, extensions' `viewsContainers.activitybar` from startup and after an install, and generated ones (cargo test -p app the_top_activity_bar_shows_contributed_containers; it showed the five built-in ones only until then), No Folder Opened welcome in an empty window (empty_view.rs); pixel-check (port/results/pixels.md, milestone 3): chevron and label edge pixels only; ui-pair port/results/layout.md; verified: every pair of port/results/windows.md (milestone 11 verification) and port/results/references-view.md |-| workbench/parts/statusbar | workbench part | M11 | verified | | no-folder and folder colors (problems, bell), no remote indicator (workbench/contrib/remote removed, port/notes.md; cargo test -p app the_status_bar_has_no_remote_indicator), editor items Ln/Col, indentation, encoding, EOL, language with tabular-nums at their shaped widths and their upstream hovers; each item runs its editorStatus.ts command (Go to Line, indentation, encoding, EOL and language pickers: cargo test -p app editor_status); extension entries in statusbarModel.ts order around problems and the editor items (status_entries.rs), and the `status.progress` window progress entry with its spinner; verified: ui-pair messages.json vs the reference (port/results/windows.md, milestone 11 verification): extension entries, warning background, window progress entry, bell |+| workbench/parts/statusbar | workbench part | M11 | ported | [3 S] status_entries.rs status_item_hover: in High Contrast the hovered label lacks statusbarpart.css's 1px dashed `contrastActiveBorder` outline (outline-offset -1px); icons drawn in their own color (problems counts, bell, language detection) keep the item foreground on hover where the reference takes `statusBarItem.hoverForeground` | no-folder and folder colors (problems, bell), no remote indicator (workbench/contrib/remote removed, port/notes.md; cargo test -p app the_status_bar_has_no_remote_indicator), editor items Ln/Col, indentation, encoding, EOL, language with tabular-nums at their shaped widths and their upstream hovers; each item runs its editorStatus.ts command (Go to Line, indentation, encoding, EOL and language pickers: cargo test -p app editor_status); extension entries in statusbarModel.ts order around problems and the editor items (status_entries.rs), and the `status.progress` window progress entry with its spinner; verified: ui-pair messages.json vs the reference (port/results/windows.md, milestone 11 verification): extension entries, warning background, window progress entry, bell || workbench/parts/titlebar | workbench part | M9 | verified | | command center with the folder name, nav and layout actions (Customize Layout runs since port/results/manage-menu.md; with the activity bar on top or bottom the title bar's Manage gear opens MenuId.GlobalActivity below it, cargo test -p app manage_menu); a click on the command center opens Quick Open with the Go to File and Show and Run Commands help picks (port/results/command-center.md); drag region as `-webkit-app-region` (empty bar drags and double-click zooms, command center and layout controls no-drag; cargo test -p app title_bar, port/results/command-center.md); context menus of the bar, the title and the command center with the Command Center, Navigation Controls and Layout Controls toggles and the path items (cargo test -p app title_bar); pixel-check file and titlebar (port/results/pixels.md): blending rounding and glyph edges only; the inactive window: `titleBar.inactiveBackground`/`inactiveForeground`, `commandCenter.inactiveBorder`, contents at 0.6 opacity, `modernUI.inactiveShellBackground` (cargo test -p app theme::tests; ui-pair `new-window.json`, port/results/windows.md) || workbench/parts/views | workbench part | M11 | verified | | Explorer views as panes (view_panes.rs): collapse by mouse and keys, sashes, header drag to reorder with drop overlay, state in workbench.explorer.views.state; no view actions, view menus or hidden views; cargo test -p app view_panes, ui-pair port/results/layout.md; pane headers drawn statically (workbench.rs section_header): no collapse, resize or view actions; verified: ui-pair port/results/references-view.md and every pair of port/results/windows.md (milestone 11 verification): the Explorer panes and contributed views as the reference; Explorer and Source Control views as panes of a ViewPaneContainer (view_panes.rs `PaneContainer`): collapse by mouse and keys, sashes, header drag to reorder with drop overlay, single view merged into the container, header actions, state in the container's storageId; cargo test -p app view_panes scm_container, ui-pair port/results/layout.md and port/fixtures/ui-pair/m11/scm-panes.json (port/notes.md View panes); verified: ui-pair port/results/references-view.md and every pair of port/results/windows.md (milestone 11 verification): the Explorer panes and contributed views as the reference; Run and Debug, Extensions and webview containers still draw section_header rows: no collapse, resize or view actions; welcome buttons draw their `$(icon)`s (cargo test -p app a_welcome_button_draws_its_label_icons; ui-pair port/fixtures/ui-pair/icons/scm-welcome.json: github's Publish to GitHub button with the github codicon as the reference); wrapped text stacks unsnapped 18.2px lines as Chromium (vendor gpui elements/text.rs; cargo test -p app wrapped_lines_keep_their_fractional_line_height): scm-welcome's Publish button 0.5pt from the reference, was 2.5pt; left: the port wraps "Git" of "To learn more about how to use Git" to the next line; a merged view's "..." puts the Views submenu, a separator and the view's own actions (panecomposite.ts `getSecondaryActions`; cargo test -p app a_merged_changes_view_shows_the_views_submenu_in_its_more_actions a_merged_view_without_actions_lists_the_view_toggles_flat) || workbench/services/accessibility | workbench service | M19 | verified | | electron-browser accessibilityService.ts over GPUI: screen reader attach follows Electron's `isAccessibilitySupportEnabled` on macOS (VoiceOver, or an assistive app setting AXManualAccessibility or AXEnhancedUserInterface, as cua-driver does; ui-pair screen-reader-detection.json with accessibility support auto shows the prompt in both), the Screen reader usage detected prompt and status entry; port/tools/a11y-check; cargo test -p app accessib; electron-browser accessibilityService.ts over GPUI: screen reader attach follows is_a11y_active, the Screen reader usage detected prompt and status entry; port/tools/a11y-check; cargo test -p app accessib |@@ -638,7 +638,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| extension/swift | built-in extension | M7 | verified | | grammar: cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (its colorize-tests fixtures, scopes and 10 default theme colors) || extension/terminal-suggest | built-in extension | M15 | verified | | runs unchanged in the host; `$registerCompletionProvider` routes to terminal/completion_service.rs and the widget of workbench/terminal_suggest.rs on terminal/prompt_input.rs; the extension's own tests: 298 passing on the port and on the reference (Studio, extensions/terminal-suggest); ui-pair of the list, details and accept against the reference || extension/theme-abyss | built-in extension | M7 | verified | | selectable in the Color Theme picker and by `workbench.colorTheme`; pixel-check main window THEMES=abyss: 9965 of 3145728 pixels off, the same breadcrumb, light bulb and language status gaps as Dark Modern (port/results/themes.md); every resolved color equals the reference variable (cargo test -p app theme::tests::resolved_colors_match_the_reference_workbench_variables) |-| extension/theme-defaults | built-in extension | M7 | verified | [1 S] extension/theme-*: breadcrumb symbol, light bulb, language status: likely class 1, prove with pixel-check (host lane) | cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (all 10 default themes incl. hc_light) and theme::tests; pixel-check dark, light, hc, hclight |+| extension/theme-defaults | built-in extension | M7 | verified | | cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (all 10 default themes incl. hc_light) and theme::tests; pixel-check dark, light, hc, hclight (WINDOWS=main, port/results/themes.md: the breadcrumb symbol, light bulb and language status now drawn in both) || extension/theme-kimbie-dark | built-in extension | M7 | verified | | selectable in the Color Theme picker and by `workbench.colorTheme`; pixel-check main window THEMES=kimbie: 8758 of 3145728 pixels off, the same breadcrumb, light bulb and language status gaps as Dark Modern (port/results/themes.md); every resolved color equals the reference variable (cargo test -p app theme::tests::resolved_colors_match_the_reference_workbench_variables) || extension/theme-modern-icons | built-in extension | M12 | verified | | file_icons.rs reads its SVG image icons, usesCurrentColor and folder, folderExpanded and rootFolder selectors (cargo test -p app image_themes_give_folders_their_icons); ui-pair with workbench.iconTheme vscode-modern-icons: Explorer closed, opened and Search frames under 0.08% pixels off in dark and light; port/fixtures/ui-pair/m12/icons.json 0.02% in light, 0.14% in hc (the tree's focus outline), verified at port-m12b-verify || extension/theme-monokai | built-in extension | M7 | verified | | selectable in the Color Theme picker and by `workbench.colorTheme`; pixel-check main window THEMES=monokai: 9640 of 3145728 pixels off, the same breadcrumb, light bulb and language status gaps as Dark Modern (port/results/themes.md); every resolved color equals the reference variable (cargo test -p app theme::tests::resolved_colors_match_the_reference_workbench_variables) |diff --git a/port/results/themes.md b/port/results/themes.mdindex b3b2d060397..bf94aeecbdf 100644--- a/port/results/themes.md+++ b/port/results/themes.md@@ -26,6 +26,8 @@ Before this change the nine theme extensions gave 119281 to 233427 different pixWhat is left in each frame is the same in every theme and belongs to other milestones: the breadcrumbs' document symbol (`main`), the code action light bulb and the TypeScript language status item (milestone 13), and the status bar items shifted by it.+Rerun after milestone 13 (`OUT=/tmp/pc-td WINDOWS=main THEMES="dark light hc hclight"`, head 1bb4c464697): different 5346 (dark), 4837 (light), 2411 (hc), 3504 (hclight). The breadcrumb symbol, light bulb and `{ } TypeScript` entry are drawn in both. Left: the reference's remote indicator (removed by decision) shifting the problems entry; translucent borders one level apart from GPU blending (commandCenter.border #cccccc33 over #242424 is #454545 in the reference, #464646 in the port, the same resolved color); High Contrast list outlines dashed where the reference's are dotted (GPUI has no dotted border, port/notes.md); the overview ruler's edge.+## Color variables`port/tools/ref-dom <dir> colors:<theme>` (with `THEME=<theme>`) writes the reference workbench's `--vscode-*` variables; `port/fixtures/theme-colors` keeps the color ids of `webview/color_ids.txt` for the 13 themes. `cargo test -p app theme::tests::resolved_colors_match_the_reference_workbench_variables` checks that every color the port resolves equals the reference's (the alpha within 1/255, as `rgba()` prints two decimals). It found and fixed: the `dropdown.*` ids (the port registered them as `select.*`, so `checkbox.*` and `menu.background` ignored the themes' dropdown colors), `minimap.findMatchHighlight` (`withOpacity` sets the alpha, it does not multiply it), and the webview variable names of ids with two dots.