Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(ledger): Settings modal passes the wheel to the editor; key_context left

rokartur50a75b23fd47
diff --git a/port/ledger.md b/port/ledger.md
index 5ba70d7ff18..541e3c6af4c 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -354,7 +354,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/parts/banner | workbench part | M11 | verified | | workbench/banner.rs (bannerPart.ts): one item by priority, icon, message with ellipsis, link actions, Close Banner; Focus Banner, `bannerFocused`, arrow keys through the links and the close button, Enter and Space on them. `cargo test -p app banner`; verified: ui-pair banner.json vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/parts/chat | workbench part | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/parts/dialogs | workbench part | M11 | verified | | workbench/dialog_view.rs custom dialog, used for every message box with `window.dialogStyle: custom` (severity codicons, plain detail); cargo test -p app dialogs; verified: ui-pair dialogs.json `custom-modal` vs the reference (port/results/windows.md, milestone 11 verification): size, buttons in macOS order, Close Dialog; its buttons and Close Dialog are accessibility buttons named by their labels (dialog.ts monaco Buttons, the close action's aria-label): port/tools/update-check pre-release presses "Trust Publisher & Install" through them |
-| workbench/parts/editor | workbench part | M8 | ported | [3 S] keybindings_editor_view.rs `modal_header`: the built-in `modalEditor/editorTitle` items are not menu entries: the preferences ones are one hardcoded JSON action (`modal_editor_title_action`), editor.contribution.ts `enableInModalMode` items (Previous/Next Change, Reopen as Text) are missing; [3 S] keybindings_editor_view.rs `modal_editor_menu_actions`: header buttons are ~3pt narrower than the reference's, the "..." menu opens right-aligned to the button where the reference's is left-aligned, and the "..." draws no active background while open (ui-pair menus/modal-editor-title.json, shot `more`); [3 S] a submenu contributed to `modalEditor/editorTitle` gets no dropdown button | breadcrumbs click, file and outline pickers, `focusAndSelect`, `selectFocused`, `focusNext/PreviousWithPicker`, `revealFocusedFromTreeAside`, `toggleToOn` and `breadcrumbs.useQuickPick` (breadcrumbsControl.ts, breadcrumbsPicker.ts: cargo test -p app workbench::breadcrumbs; verified: ui-pair m8/breadcrumbs-pickers.json with `FILE=src/main.ts`, the picker's place, arrow, rows and icons and the focused last item match the reference), connected tab strip (preview/pinned, close, split and more actions), a dirty tab still open in another group closes without the save prompt (editorGroupView.ts `isOpenedInOtherGroup`: cargo test -p app the_wait_marker_waits_for_the_dirty_file_to_be_saved), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5): cargo test -p app editor::tests (91), keys_and_typed_text_edit_the_focused_editor_and_reach_the_host; tab context menu (Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open; port/results/contextmenu.md): cargo test -p app editor_menus (8); `_workbench.open` and `vscode.open` (file, untitled with its path, web link, view columns): cargo test -p app workbench_open (3), `_workbench.diff` with the diff editor: cargo test -p app diff_editor; editor groups and splits (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas): cargo test -p app editor_groups (11), editor_grid (14); locked scrolling (workbench/scroll_locking.rs): cargo test -p app scroll_locking; editorpart.state restored from workspace storage: cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage; pixel-check file window (port/results/pixels.md milestone 4); all run at the milestone 20 sweep; one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); editorpart.state: the grid and the groups' file editors restored from workspace storage (cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage); one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); breadcrumbs editor type picker (editor_type_picker.rs, editorTypePicker.ts) for text and diff editors: Text Diff Editor label, `priority.diffEditor` ranks, `workbench.diffEditorAssociations`, Set Default (Diff Only), Open Original/Modified: cargo test -p app editor_type_picker; ui-pair m12/editor-type.json matches, the menus' width included; the editor title's ... menu (MenuId.EditorTitle with Reopen Editor With, the button's `toolbar.activeBackground` while it shows), the empty group context menu (MenuId.EmptyEditorGroupContext) and the watermark shortcuts: ui-pair m11/editor-menus.json and m11/watermark-tips.json (port/results/auxiliary-windows.md), cargo test -p app editor_menus editor_type_picker; the empty group menu's New Terminal; the Text Editor control at a second start, restored from the `memento/customEditors` profile memento as contributedCustomEditors.ts does (cargo test -p app editor_type_picker custom_editors, ui-pair m12/editor-type-second-start.json); terminal editors (terminalEditorService.ts, terminalEditorInput.ts): Create New Terminal in Editor Area, Move Terminal into Editor Area and into the Panel, the terminal tab's context and title menus, `TabInputKind.TerminalEditorInput` tabs (cargo test -p app terminal_editor, ui-pair m12/terminal-editor.json); terminal editors restored after a restart (terminalEditorSerializer.ts); the terminal tab menus' Change Color, Change Icon, Toggle Size to Content Width and Move Terminal into New Window with the color and icon pickers (cargo test -p app terminal_editor icon_select_box, ui-pair m12/terminal-pickers.json and m12/terminal-tab-list-menu.json, m12/editor-type-second-start.json); `workbench.editor.enablePreview` off opens every editor pinned and Toggle Keep Editors pins the preview editor (cargo test -p app previews_off_pins_every_opened_editor); tab labels keep fractional text widths (vendored GPUI elements/text.rs; cargo test -p app tab_labels_keep, ui-pair icons/seti.json); `workbench.editor.showTabs` per part (editorTitleControl.ts): `single` draws singleEditorTabsControl.ts, the active editor's label 35px high, its breadcrumbs inline with `/` while the group is active, else its `workbench.editor.labelFormat` description, the close or unpin action, the actions at half opacity in an inactive group, `none` only the breadcrumbs row, `editorTabsVisible` (workbench/editor_view.rs `single_editor_tab_title`; cargo test -p app show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own; ui-pair `show-tabs.json` with SETTINGS single and none). `workbench.editor.editorActionsLocation` (titlebarPart.ts `editorActionsEnabled`): `titleBar`, or `default` with `showTabs: none`, draws the editor actions in the title bar before the layout controls with their overflow, Customize Layout moves into it (layoutActions.ts `EditorActionsInTitleBar`), the command center names the active file with its dirty dot, `hidden` draws them nowhere, and titlebarActions.ts `ToggleEditorActions` keeps the hidden location in profile storage; the six Show/Hide Editor Tabs commands (layoutActions.ts `AbstractSetShowTabsAction`) and the Editor Actions Position setters with their Tab Bar and Editor Actions Position submenus in View > Appearance and the tab bar's `EditorTabsBarContext` menu (workbench/editor_view.rs `title_bar_has_editor_actions`, workbench/editor_menus.rs `show_tabs_bar_context_menu`; cargo test -p app show_tabs_none_moves_the_editor_actions_into_the_title_bar the_tab_bar_menu_switches_the_tabs_mode the_editor_actions_toggle_restores_the_hidden_location menubar; ui-pair `show-tabs.json` with SETTINGS none: the title bar's split, close, separator, layout controls and `...` and the command center's main.ts match the reference); breadcrumbs focus mode (workbench/breadcrumbs.rs, breadcrumbsControl.ts): Focus Breadcrumbs focuses the last item, Left and Right move the focus, Space and Cmd+Enter reveal the focused file or symbol, Escape focuses the editor, the focused item underlined in `breadcrumb.focusForeground`, `breadcrumbsActive`: cargo test -p app the_keyboard_focuses_moves_through_and_reveals_the_breadcrumbs; the modal part's `modalEditor/editorTitle` actions (modalEditorPart.ts:425 `createEditorActions`): the menu's `navigation` items sorted with the JSON action by order then title, its other groups in a `...` (keybindings_editor_view.rs `modal_editor_menu_actions`; cargo test -p app the_modal_header_shows_the_modal_editor_title_menu; ui-pair menus/modal-editor-title.json: the order and the overflow item match the reference) |
+| workbench/parts/editor | workbench part | M8 | ported | [3 S] modal_editor_group.rs:220: a scroll over the Settings modal editor scrolls the text editor below it and not the settings list (GUI, port/notes.md Scroll frame costs), where modalEditorPart.ts's overlay takes the wheel <br> [3 S] keybindings_editor_view.rs `modal_header`: the built-in `modalEditor/editorTitle` items are not menu entries: the preferences ones are one hardcoded JSON action (`modal_editor_title_action`), editor.contribution.ts `enableInModalMode` items (Previous/Next Change, Reopen as Text) are missing; [3 S] keybindings_editor_view.rs `modal_editor_menu_actions`: header buttons are ~3pt narrower than the reference's, the "..." menu opens right-aligned to the button where the reference's is left-aligned, and the "..." draws no active background while open (ui-pair menus/modal-editor-title.json, shot `more`); [3 S] a submenu contributed to `modalEditor/editorTitle` gets no dropdown button | breadcrumbs click, file and outline pickers, `focusAndSelect`, `selectFocused`, `focusNext/PreviousWithPicker`, `revealFocusedFromTreeAside`, `toggleToOn` and `breadcrumbs.useQuickPick` (breadcrumbsControl.ts, breadcrumbsPicker.ts: cargo test -p app workbench::breadcrumbs; verified: ui-pair m8/breadcrumbs-pickers.json with `FILE=src/main.ts`, the picker's place, arrow, rows and icons and the focused last item match the reference), connected tab strip (preview/pinned, close, split and more actions), a dirty tab still open in another group closes without the save prompt (editorGroupView.ts `isOpenedInOtherGroup`: cargo test -p app the_wait_marker_waits_for_the_dirty_file_to_be_saved), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5): cargo test -p app editor::tests (91), keys_and_typed_text_edit_the_focused_editor_and_reach_the_host; tab context menu (Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open; port/results/contextmenu.md): cargo test -p app editor_menus (8); `_workbench.open` and `vscode.open` (file, untitled with its path, web link, view columns): cargo test -p app workbench_open (3), `_workbench.diff` with the diff editor: cargo test -p app diff_editor; editor groups and splits (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas): cargo test -p app editor_groups (11), editor_grid (14); locked scrolling (workbench/scroll_locking.rs): cargo test -p app scroll_locking; editorpart.state restored from workspace storage: cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage; pixel-check file window (port/results/pixels.md milestone 4); all run at the milestone 20 sweep; one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); editorpart.state: the grid and the groups' file editors restored from workspace storage (cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage); one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); breadcrumbs editor type picker (editor_type_picker.rs, editorTypePicker.ts) for text and diff editors: Text Diff Editor label, `priority.diffEditor` ranks, `workbench.diffEditorAssociations`, Set Default (Diff Only), Open Original/Modified: cargo test -p app editor_type_picker; ui-pair m12/editor-type.json matches, the menus' width included; the editor title's ... menu (MenuId.EditorTitle with Reopen Editor With, the button's `toolbar.activeBackground` while it shows), the empty group context menu (MenuId.EmptyEditorGroupContext) and the watermark shortcuts: ui-pair m11/editor-menus.json and m11/watermark-tips.json (port/results/auxiliary-windows.md), cargo test -p app editor_menus editor_type_picker; the empty group menu's New Terminal; the Text Editor control at a second start, restored from the `memento/customEditors` profile memento as contributedCustomEditors.ts does (cargo test -p app editor_type_picker custom_editors, ui-pair m12/editor-type-second-start.json); terminal editors (terminalEditorService.ts, terminalEditorInput.ts): Create New Terminal in Editor Area, Move Terminal into Editor Area and into the Panel, the terminal tab's context and title menus, `TabInputKind.TerminalEditorInput` tabs (cargo test -p app terminal_editor, ui-pair m12/terminal-editor.json); terminal editors restored after a restart (terminalEditorSerializer.ts); the terminal tab menus' Change Color, Change Icon, Toggle Size to Content Width and Move Terminal into New Window with the color and icon pickers (cargo test -p app terminal_editor icon_select_box, ui-pair m12/terminal-pickers.json and m12/terminal-tab-list-menu.json, m12/editor-type-second-start.json); `workbench.editor.enablePreview` off opens every editor pinned and Toggle Keep Editors pins the preview editor (cargo test -p app previews_off_pins_every_opened_editor); tab labels keep fractional text widths (vendored GPUI elements/text.rs; cargo test -p app tab_labels_keep, ui-pair icons/seti.json); `workbench.editor.showTabs` per part (editorTitleControl.ts): `single` draws singleEditorTabsControl.ts, the active editor's label 35px high, its breadcrumbs inline with `/` while the group is active, else its `workbench.editor.labelFormat` description, the close or unpin action, the actions at half opacity in an inactive group, `none` only the breadcrumbs row, `editorTabsVisible` (workbench/editor_view.rs `single_editor_tab_title`; cargo test -p app show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own; ui-pair `show-tabs.json` with SETTINGS single and none). `workbench.editor.editorActionsLocation` (titlebarPart.ts `editorActionsEnabled`): `titleBar`, or `default` with `showTabs: none`, draws the editor actions in the title bar before the layout controls with their overflow, Customize Layout moves into it (layoutActions.ts `EditorActionsInTitleBar`), the command center names the active file with its dirty dot, `hidden` draws them nowhere, and titlebarActions.ts `ToggleEditorActions` keeps the hidden location in profile storage; the six Show/Hide Editor Tabs commands (layoutActions.ts `AbstractSetShowTabsAction`) and the Editor Actions Position setters with their Tab Bar and Editor Actions Position submenus in View > Appearance and the tab bar's `EditorTabsBarContext` menu (workbench/editor_view.rs `title_bar_has_editor_actions`, workbench/editor_menus.rs `show_tabs_bar_context_menu`; cargo test -p app show_tabs_none_moves_the_editor_actions_into_the_title_bar the_tab_bar_menu_switches_the_tabs_mode the_editor_actions_toggle_restores_the_hidden_location menubar; ui-pair `show-tabs.json` with SETTINGS none: the title bar's split, close, separator, layout controls and `...` and the command center's main.ts match the reference); breadcrumbs focus mode (workbench/breadcrumbs.rs, breadcrumbsControl.ts): Focus Breadcrumbs focuses the last item, Left and Right move the focus, Space and Cmd+Enter reveal the focused file or symbol, Escape focuses the editor, the focused item underlined in `breadcrumb.focusForeground`, `breadcrumbsActive`: cargo test -p app the_keyboard_focuses_moves_through_and_reveals_the_breadcrumbs; the modal part's `modalEditor/editorTitle` actions (modalEditorPart.ts:425 `createEditorActions`): the menu's `navigation` items sorted with the JSON action by order then title, its other groups in a `...` (keybindings_editor_view.rs `modal_editor_menu_actions`; cargo test -p app the_modal_header_shows_the_modal_editor_title_menu; ui-pair menus/modal-editor-title.json: the order and the overflow item match the reference) |
| workbench/parts/notifications | workbench part | M11 | verified | | workbench/notifications_view.rs: toasts (3 at most, purge 10/12/15s unless sticky, focused or hovered, spam protection), notifications center (Clear All, Do Not Disturb menu with per-source filters, Hide), rows with expand, collapse, clear, More Actions, buttons, links, Copy Text, double-click toggle; status bar bell states and tooltips; notificationsCommands.ts commands and context keys; geometry from the reference DOM (port/tools/ref-dom); cargo test -p app notifications_view; `workbench.notifications.position` (bottom right, bottom left, top right with the title bar bell); no toast animation, no screen reader announcements; verified: ui-pair messages.json `center`, `progress` vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/parts/panel | workbench part | M11 | verified | | bottom centered card, view tabs from register_panel_view with the "..." overflow of compositeBar.ts (cargo test -p app workbench::panel::, ui-pair port/results/problems.md), `<view id>.focus` per view, Maximize/Restore, Close, Cmd+J, active view in workspace storage; Problems, Output, Debug Console, Test Results (`hideIfEmpty`) and Terminal views with their title actions (cargo test -p app editor_groups the_output_view_shows_in_the_panel, output_view, the_debug_console_and_test_results_are_panel_views, terminal); part_grid tests, ui-pair port/results/layout.md; no panel position or alignment change, no Views and More Actions menu; verified: ui-pair port/results/problems.md (milestone 11 verification): tabs, "..." overflow and the filter box as the reference; tabs at Chromium's fractional text widths (the Problems tab with its badge was 2px wider: GPUI rounds a text element's width up), the filter in the view below 600px of width (`shouldShowFilterInHeader`) |
| 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 |
@@ -407,7 +407,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/services/language | workbench service | M7 | verified | | getAssociationByPath with the full glob dialect (languages::tests::file_patterns_take_the_whole_glob_dialect) plus firstLine detection (languages.rs); cargo test -p app languages::tests |
| workbench/services/languageDetection | workbench service | M13 | verified | | language_detection.rs (languageDetectionWebWorker.ts `detectLanguagesImpl`, `adjustLanguageConfidence`, the 10000 char sample) and workbench/language_detection.rs (`LanguageDetectionWorkerClient`: the file name guess first, then @vscode/vscode-languagedetection 1.0.23 with its model in a Bun worker from the app's node_modules, model ids mapped as `getLanguageId`; `autoDetectLanguage` of textEditorModel.ts for untitled models and extensionless plain text files, 600 ms throttle, skipped after an explicit language and with `workbench.editor.languageDetection` off): cargo test -p app language_detection (the worker test runs the real model). The history biases only feed the regexp model, which 1.147.0 does not ship (`vscode-regexp-languagedetection` is not a dependency), so neither side has it; no telemetry. The reference checkout's worker detects nothing (Detect Language from Content: "Unable to detect editor language" on a typed Python snippet) while its own model in node gives py 0.33, which `detectLanguagesImpl` yields; the port shows Python (port/notes.md milestone 13 finding) |
| workbench/services/languageStatus | workbench service | M13 | verified | | `$setLanguageStatus` / `$removeLanguageStatus`, statuses matched by selector, ordered by severity, source, id (workbench/language_status.rs): cargo test -p app language_status |
-| workbench/services/layout | workbench service | M11 | ported | [3 S] terminal_view.rs:1235: with Tab Focus Mode on, Tab in the terminal goes to the shell, where terminalInstance.ts:1204 leaves it to the browser's Tab order (port/notes.md Toggle Tab Key Moves Focus) <br> [3 S] action_bar.rs:45: an action bar item focused by Tab shows no hover, where the reference shows the command center's and Customize Layout's tooltips on focus, and the activity bar item's focus outline has square corners where the reference's are rounded (ui-pair Tab steps, port/notes.md Toggle Tab Key Moves Focus) <br> [3 L] workbench.rs:591: the Workbench is one GPUI view, so every scroll frame of any list renders and lays out every part again, where upstream's DOM updates only the scrolled list; the side bar, the editor area, the panel, the status bar, the activity bar and the title bar are cached part views (part_view.rs: a list scroll notifies only the view it was painted in, an editor scroll only the editor area's, a size measured while drawing redraws its view after the frame; the status bar gave no measurable change), the secondary side bar still renders with the Workbench; the Explorer's rows are absolutely placed 22px boxes as listView.ts's (workbench.rs Explorer rows; ~70% of the Explorer frame was the taffy layout of its rows in flow); the minimap copies unchanged rows from the last frame (minimap.rs `render_lines`) and the menu bar updates 200 ms after a frame as menubarControl.ts `menuUpdater` does; a folder with a sub-second mtime is cached 100 ms after its last change, not 2 s (explorer.rs `entries`: the Editor's first 1.5 s of frames re-read the fixture's 800-file root on each `key_context` call, port/notes.md Scroll frame costs, the Editor's slow start); `scroll_frame_time` median / p95 (two interleaved runs, the Studio shared): Explorer 2.9 / 3.2 and 2.9 / 3.6 ms (rows in flow: 10.9 / 18.6 and 11.0 / 21.4), Editor 6.9 / 7.7 and 6.9 / 7.5 ms, Settings 1.1 / 1.4 and 1.0 / 1.4 ms, Extensions 1.7 / 2.0 and 1.7 / 1.9 ms, every surface under the 8 ms gate headless (NoopTextSystem). GUI (release app on the Studio host lane with the extension host running, the same folder, a scratch CGEvent probe posting 30px continuous scroll events at about 120 Hz for 4 to 7 s down then up, `Window::draw` timed by a scratch timer; the Studio's accessibility client turns "Screen Reader Optimized" on, and every GUI number includes it): Editor median 10.4 to 12.2 / p95 11.9 to 23.6 ms (cursor on `export`, word highlights on all 20000 lines); Explorer scrolling up 7.8 / 11.3 ms (was 18.6 / 36.4), scrolling down 10.2 / 38.3 ms over 90 frames as it reaches the list's end; Extensions @builtin 5.1 / 7.9 down, 4.9 / 6.6 up (was 11.0 / 30.6 and 5.8 / 8.6). Fixed on the way: an inlay-hint answer, a file decoration answer and a gallery icon notified the Workbench (every part drew again each frame that asked), the cursor blink notified the Workbench every 500 ms, the overview ruler scanned every document highlight per word highlight (80 to 120 ms a frame), and the collapsed Outline and Timeline panes built their bodies (29% of an Explorer frame). Left in the Editor's GUI frame: taffy `layout_as_root` 24%, `key_context` 11% (two calls per frame, floating_menu.rs:72 and the editor title actions: `config.*` clones at keyboard.rs:409, every Explorer row listed for the focused row's keys at explorer_actions.rs:311, `resource_editors` for the focused file, and output_actions.rs:150 reading argv.json from disk), `editor_lines` 10%, the map of 20000 highlights 9%, the minimap 5%. Explorer's 50 to 250 ms frames with a row's hover not reproduced in the last runs. Settings is not measured in the GUI: the probe's Cmd+, did not open it on the lane (port/notes.md Scroll frame costs) | layout.ts as a split-view tree (workbench/layout.rs): panel position (bottom, top, left, right) and alignment, primary side bar left or right, maximized panel with `panelMaximizationSupportedWhen`, hidden parts, persisted sizes and positions; zen mode (zen_mode.rs) with its settings and restore; centered layout (centered_layout.rs) with its sashes and stored margins; View > Appearance entries and the Panel Position and Align Panel submenus (cargo test -p app -- layout part_grid centered_layout zen_mode); layoutActions.ts Customize Layout quick pick (workbench/customize_layout.rs) with live items, Restore Defaults and Close, Toggle Activity Bar Visibility, Align Quick Input Top/Center (cargo test -p app -- customize_layout toggling_the_activity_bar; ui-pair m11/manage-menu.json, port/results/manage-menu.md; missing until then though the title bar showed its button); ui-pair layout-positions.json and layout-zen.json against the reference (port/results/layout.md). The pairs run with `zenMode.fullScreen` off. Maximize Secondary Side Bar (`workbench.action.maximizeAuxiliaryBar`, `restoreAuxiliaryBar`, `toggleMaximizedAuxiliaryBar`, the title's toggle) hides the other parts and restores them (workbench/panel.rs; cargo test -p app -- maximizing_the_secondary_side_bar_hides_the_other_parts_and_restore_brings_them_back). Zen mode enforces `zenMode.showTabs` on the main editor part until it ends (layout.ts `toggleZenMode` `enforcePartOptions`; workbench/zen_mode.rs `editor_show_tabs`; cargo test -p app -- show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own); navigationActions.ts `workbench.action.focusNextPart`/`focusPreviousPart` (F6, Shift+F6) walk editor, panel, auxiliary bar, status bar, activity bar and side bar past the hidden ones with layout.ts `focusPart` (the pane container's first expanded view; workbench/part_navigation.rs; cargo test -p app f6_walks_the_visible_parts); in an editor window F6 goes between its editor and its own status bar, whose entry focus is kept per window (workbench/auxiliary_windows.rs `auxiliary_status_bar`, workbench/status_entries.rs; cargo test -p app f6_in_an_editor_window_reaches_its_own_status_bar) |
+| workbench/services/layout | workbench service | M11 | ported | [3 S] terminal_view.rs:1235: with Tab Focus Mode on, Tab in the terminal goes to the shell, where terminalInstance.ts:1204 leaves it to the browser's Tab order (port/notes.md Toggle Tab Key Moves Focus) <br> [3 S] action_bar.rs:45: an action bar item focused by Tab shows no hover, where the reference shows the command center's and Customize Layout's tooltips on focus, and the activity bar item's focus outline has square corners where the reference's are rounded (ui-pair Tab steps, port/notes.md Toggle Tab Key Moves Focus) <br> [3 L] workbench.rs:591: the Workbench is one GPUI view, so every scroll frame of any list renders and lays out every part again, where upstream's DOM updates only the scrolled list; the side bar, the editor area, the panel, the status bar, the activity bar and the title bar are cached part views (part_view.rs: a list scroll notifies only the view it was painted in, an editor scroll only the editor area's, a size measured while drawing redraws its view after the frame; the status bar gave no measurable change), the secondary side bar still renders with the Workbench; the Explorer's rows are absolutely placed 22px boxes as listView.ts's (workbench.rs Explorer rows; ~70% of the Explorer frame was the taffy layout of its rows in flow); the minimap copies unchanged rows from the last frame (minimap.rs `render_lines`) and the menu bar updates 200 ms after a frame as menubarControl.ts `menuUpdater` does; a folder with a sub-second mtime is cached 100 ms after its last change, not 2 s (explorer.rs `entries`: the Editor's first 1.5 s of frames re-read the fixture's 800-file root on each `key_context` call, port/notes.md Scroll frame costs, the Editor's slow start); `scroll_frame_time` median / p95 (two interleaved runs, the Studio shared): Explorer 2.9 / 3.2 and 2.9 / 3.6 ms (rows in flow: 10.9 / 18.6 and 11.0 / 21.4), Editor 6.9 / 7.7 and 6.9 / 7.5 ms, Settings 1.1 / 1.4 and 1.0 / 1.4 ms, Extensions 1.7 / 2.0 and 1.7 / 1.9 ms, every surface under the 8 ms gate headless (NoopTextSystem). GUI (release app on the Studio host lane with the extension host running, the same folder, a scratch CGEvent probe posting 30px continuous scroll events at about 120 Hz for 4 to 7 s down then up, `Window::draw` timed by a scratch timer; the Studio's accessibility client turns "Screen Reader Optimized" on, and every GUI number includes it): Editor median 10.4 to 12.2 / p95 11.9 to 23.6 ms (cursor on `export`, word highlights on all 20000 lines); Explorer scrolling up 7.8 / 11.3 ms (was 18.6 / 36.4), scrolling down 10.2 / 38.3 ms over 90 frames as it reaches the list's end; Extensions @builtin 5.1 / 7.9 down, 4.9 / 6.6 up (was 11.0 / 30.6 and 5.8 / 8.6). Fixed on the way: an inlay-hint answer, a file decoration answer and a gallery icon notified the Workbench (every part drew again each frame that asked), the cursor blink notified the Workbench every 500 ms, the overview ruler scanned every document highlight per word highlight (80 to 120 ms a frame), and the collapsed Outline and Timeline panes built their bodies (29% of an Explorer frame). Left in the Editor's GUI frame: taffy `layout_as_root` 24%, `key_context` 11% (now one call per frame: the floating menu skips it without an EditorContent item, and argv.json is parsed again only when its modification time changes; left: the `config.*` clone at keyboard.rs:409, every Explorer row listed for the focused row's keys at explorer_actions.rs:311, `resource_editors` for the focused file), `editor_lines` 10%, the map of 20000 highlights 9%, the minimap 5%. Explorer's 50 to 250 ms frames with a row's hover not reproduced in the last runs. Settings is not measured in the GUI: it opens as the modal editor, and a scroll over it reaches the text editor below (workbench/parts/editor gap; port/notes.md Scroll frame costs) | layout.ts as a split-view tree (workbench/layout.rs): panel position (bottom, top, left, right) and alignment, primary side bar left or right, maximized panel with `panelMaximizationSupportedWhen`, hidden parts, persisted sizes and positions; zen mode (zen_mode.rs) with its settings and restore; centered layout (centered_layout.rs) with its sashes and stored margins; View > Appearance entries and the Panel Position and Align Panel submenus (cargo test -p app -- layout part_grid centered_layout zen_mode); layoutActions.ts Customize Layout quick pick (workbench/customize_layout.rs) with live items, Restore Defaults and Close, Toggle Activity Bar Visibility, Align Quick Input Top/Center (cargo test -p app -- customize_layout toggling_the_activity_bar; ui-pair m11/manage-menu.json, port/results/manage-menu.md; missing until then though the title bar showed its button); ui-pair layout-positions.json and layout-zen.json against the reference (port/results/layout.md). The pairs run with `zenMode.fullScreen` off. Maximize Secondary Side Bar (`workbench.action.maximizeAuxiliaryBar`, `restoreAuxiliaryBar`, `toggleMaximizedAuxiliaryBar`, the title's toggle) hides the other parts and restores them (workbench/panel.rs; cargo test -p app -- maximizing_the_secondary_side_bar_hides_the_other_parts_and_restore_brings_them_back). Zen mode enforces `zenMode.showTabs` on the main editor part until it ends (layout.ts `toggleZenMode` `enforcePartOptions`; workbench/zen_mode.rs `editor_show_tabs`; cargo test -p app -- show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own); navigationActions.ts `workbench.action.focusNextPart`/`focusPreviousPart` (F6, Shift+F6) walk editor, panel, auxiliary bar, status bar, activity bar and side bar past the hidden ones with layout.ts `focusPart` (the pane container's first expanded view; workbench/part_navigation.rs; cargo test -p app f6_walks_the_visible_parts); in an editor window F6 goes between its editor and its own status bar, whose entry focus is kept per window (workbench/auxiliary_windows.rs `auxiliary_status_bar`, workbench/status_entries.rs; cargo test -p app f6_in_an_editor_window_reaches_its_own_status_bar) |
| workbench/services/lifecycle | workbench service | M11 | verified | | `describeEditors` names the upstream input's `typeId` and differing `editorId`, and `workbench.floatingWindowNotRestorable` blocks while the process explorer, the port's one window that is no editor part, is open (upstream's is an editor in an auxiliary window): cargo test -p app blockers_name_the_editor_kind_and_the_window_that_does_not_come_back; workbench/lifecycle.rs: ShutdownReason, onBeforeShutdown vetoes on quit, close button, closeWindow, reload and load (`window.confirmBeforeClose`, backup tracker auto save, hot exit, showSaveConfirm); cargo test -p app lifecycle; no phases or onWillShutdown joiners; workbench/unattended_restart.rs: `canRestartUnattended` with its blocker aggregation and change log, and the participants `workbench.starting` (2.5 s after restore), dialog, quick input, transient workspace, modal editor, editors not restored or not restorable, `debug.sessionActive`, `tasks.running`, the backup tracker's `workingCopy.*` and `cli.waitingForEditorClose`, terminalUnattendedRestart.ts with childProcessMonitor.ts `hasChildProcesses` (terminal/pty.rs, background jobs included: cargo test -p app a_background_job_is_a_child_process_of_the_shell), testingUnattendedRestart.ts, `testing.continuousRun`, webviewUnattendedRestart.ts and notebookUnattendedRestart.ts: cargo test -p app unattended_restart (unattendedRestart.test.ts, terminalUnattendedRestart.test.ts, testingUnattendedRestart.test.ts); update/unattended_restart.rs: unattendedRestartScheduler.ts's decisions (keep awake from the lock, restart once locked a minute, retry every minute, veto, a newer update postponing, battery and thermal pressure, resume restarting the clock, the update not installed last time) over injected time: cargo test -p app update::unattended_restart (13 of unattendedRestartScheduler.test.ts's cases, without the telemetry outcomes the port does not send); workbench/unattended_restart.rs `UnattendedRestart`: the scheduler's host on macOS (power events, window blur, update state, timers, the `prevent-app-suspension` blocker, `quitAndInstall` from a window), `getWindowBlockers` (`window.launchArguments` and `window.launchedFromCli` from the command line that opened the window, a second instance's `VSCODE_CLI` sent with its arguments), `hasArgumentsLostOnRelaunch`, `app.launchedFromCli`, `app.dialogOpen` (dialog.rs `has_open_dialogs`: the NSAlert sheets and the open and save panels) and the failed update remembered across the restart: cargo test -p app unattended_restart (a_locked_screen_keeps_the_machine_awake, windows_that_do_not_come_back_as_they_are_block, launch_arguments_the_relaunch_drops_block, a_restart_that_came_back_on_the_same_commit_failed_to_install); windows_state.rs `setNextExactRestore`/`takeExactRestore` (minimized windows, hidden app): cargo test -p app windows_state; verified: cargo test -p app backup_tracker lifecycle (workingCopyBackupTracker.test.ts); ui-pair hot-exit.json `dirty`, `restored` vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/services/localTranscription | workbench service | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |
| workbench/services/localization | workbench service | M18 | verified | | ui-pair port/fixtures/extensions/ui-display-language.json: picking Deutsch installs MS-CEINTL.vscode-language-pack-de with the "Installing Deutsch language support..." progress and asks "Restart VSRustium to switch to Deutsch?"; localeService.ts: argv.json `locale` written and cleared, restart dialog, install of an MS-CEINTL pack: cargo test -p app nls localization; Command Palette titles, categories and descriptions translate by the reference call's module and key (port/tools/ref-commands with ref-nls-clone.ts; cargo test -p app a_palette_title_two_modules), menu bar items, side bar titles and pane headers by the reference's `nlsKeys` per menu, view and container (cargo test -p app menu_bar_items_and_view_titles_resolve_per_scope); other surfaces stay English (port/notes.md) |
diff --git a/port/notes.md b/port/notes.md
index 400bab8eb79..cbf92b97a6e 100644
--- a/port/notes.md
+++ b/port/notes.md
@@ -1002,7 +1002,7 @@ What to do (milestone 21, in order):
- Scroll frame costs, the Editor's slow start (branch port-fix-settings-scroll, same harness): the Editor's first 70 to 105 frames took 14 ms, the later ones 7, and waiting 3 s after the open removed it. An `xctrace` Time Profiler run over the editor test put half of those early frames in `key_context` > `explorer_context` > `FileTree::rows`, reading and sorting the 800-file root again (a `stat` per file, the ICU collator) on both `key_context` calls of each frame: `FileTree::entries` cached a folder only once its mtime was 2 s old (git's racy entries), and the fixture had just written it. A sub-second mtime now marks a fine-grained file system (APFS keeps nanoseconds), where 100 ms settles the folder; a whole-second mtime keeps the 2 s (cargo test -p app a_fine_grained_mtime_settles_after_100_ms). In a real window the same re-read ran on each `key_context` call for 2 s after any change to an expanded folder. Median / p95 ms, two interleaved runs, before then after: Editor 6.9 to 7.0 / 14.0 to 14.7 then 6.9 / 7.5 to 7.7; Explorer 3.0 to 3.2 / 7.2 to 7.3 then 2.9 / 3.2 to 3.6; Extensions 1.7 / 2.0 to 2.1 then 1.7 / 1.9 to 2.0; Settings 1.1 / 1.4 then 1.0 / 1.4. Every surface meets the 8 ms gate.
- Scroll frame costs in the GUI (branch port-fix-settings-scroll): the release app on the Studio host lane over the same folder, a scratch Swift CGEvent probe posting 30px continuous scroll events at about 100 Hz, and a scratch timer in `Window::draw`, give the frame times the headless harness gives; tracing `Context::notify` callers with `#[track_caller]` found who draws the Workbench. An inlay-hint answer called the Workbench's `cx.notify()`, so every part drew again on 78 of 87 scroll frames; with no provider registered a scroll still sent a request, whose answer came at once. The answer now notifies the editor view, and no provider means no request (inlayHintsController.ts:189). The overview ruler then took 80 to 120 ms a frame: with the cursor on `export`, a word on every line of the 20000, `word_highlight_ruler_lines` looked each of the 20000 highlights' kind up by a scan of the 20000 document highlights; one map per frame now. Editor in the GUI after both: median 10.5 / p95 11.8 ms (450 frames), its main thread in taffy `layout_as_root` 24%, `key_context` 14%, `editor_lines` 10%, the highlights map 9%. The Studio's accessibility client turns on "Screen Reader Optimized". On the lane `screencapture` fails ("could not create image from display"); `cua-driver call get_window_state` with `screenshot_out_file` works. A bare `wait` in a script that started the app in the background waits for the app.
- The Studio mirror of this branch had an `out-exthost` from Nov 23 that `port/tools/build-exthost` had not inlined (its `BUILD_INSERT_PRODUCT_CONFIGURATION` markers still there), so the extension host asked for `../product.json` and failed to start; `bun port/tools/build-exthost` in the mirror fixed it. The bundle is not affected: build-exthost inlines the product and package-app writes `product.json` into the app.
-- Scroll frame costs, the second GUI round (branch port-fix-settings-scroll): logging `Context::notify` callers on the Workbench with `#[track_caller]` while scrolling each surface found two more answers that redrew every part: a file decoration answer (137 times in an Explorer scroll up) and a gallery icon (149 times in the Extensions @builtin list). Each answer now notifies the view that drew the asking label or row (`window.current_view()` at the request), so every view that draws labels sends its own decoration requests at the end of its render: the Workbench root, each cached part view and each editor window. The Explorer's frame then showed the collapsed Outline (17%, a clone of the whole outline model) and Timeline (13%, its menu's context keys) building bodies the pane view drops; they now return their header only while `is_view_visible` is false. The probe's Cmd+, opened Settings once (editor focused, the modal editor) and not on later runs; a scroll over the modal reached the editor below it in that run, not checked again.
+- Scroll frame costs, the second GUI round (branch port-fix-settings-scroll): logging `Context::notify` callers on the Workbench with `#[track_caller]` while scrolling each surface found two more answers that redrew every part: a file decoration answer (137 times in an Explorer scroll up) and a gallery icon (149 times in the Extensions @builtin list). Each answer now notifies the view that drew the asking label or row (`window.current_view()` at the request), so every view that draws labels sends its own decoration requests at the end of its render: the Workbench root, each cached part view and each editor window. The Explorer's frame then showed the collapsed Outline (17%, a clone of the whole outline model) and Timeline (13%, its menu's context keys) building bodies the pane view drops; they now return their header only while `is_view_visible` is false. Settings opens on the lane through a user keybinding (`f19` to `workbench.action.openSettings2`, a plain key the probe posts), where the probe's Cmd+, and Cmd+Shift+P did not reach the app. It opens as the modal editor (with `workbench.editor.useModal` `off` too), and in two runs a scroll over it moved the text editor below (line 36 to 2508) while the settings list stayed at Commonly Used, so the GUI cannot measure Settings until the modal takes the wheel (ledger workbench/parts/editor).
## GUI lanes (Studio)