Visual Studio Code, rebuilt in Rust
Rust
Merge branch 'port-integrate' into port-audit-editor-b
rokarturc2992f210edf
diff --cc native/crates/app/src/menus.rsindex eac7de2d50e,954c6c44a92..0da9f88c1b2--- a/native/crates/app/src/menus.rs+++ b/native/crates/app/src/menus.rs@@@ -921,7 -937,7 +941,7 @@@ pub fn workbench_menus() -> Vec<MenuIte/// menusExtensionPoint.ts `apiMenus`: the `contributes.menus` keys of the menus the port shows. `commandPalette`/// is read by `command_palette::menu`.- const API_MENUS: [(&str, MenuId); 51] = [-const API_MENUS: [(&str, MenuId); 52] = [++const API_MENUS: [(&str, MenuId); 53] = [("file/newFile", MenuId::NewFile),("editor/context", MenuId::EditorContext),("explorer/context", MenuId::ExplorerContext),diff --cc port/ledger.mdindex 341c33ccf8c,5115c1ce518..2586b43e0e7--- a/port/ledger.md+++ b/port/ledger.md@@@ -365,7 -365,7 +365,7 @@@ One row per upstream unit, generated b| 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 || workbench/services/accounts | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |- | workbench/services/actions | workbench service | M9 | ported | [3 L] contributes.menus: unmapped ids of menusExtensionPoint.ts, each needing its view's menu first: debug/toolBar (debug_toolbar.rs draws a fixed action list), debug/createConfiguration, testing/item/gutter, testing/profiles/context, testing/item/result, testing/message/context, testing/message/content, webview/context, modalEditor/editorTitle, editor/inlineCompletions/actions, diffEditor/gutter/selection, multiDiffEditor/content, notebook/cell/execute, notebook/kernelSource, notebook/variables/context, mergeEditor/result/title, comments/comment/editorActions, comments/commentThread/additionalActions, comments/commentThread/title/context, comments/commentThread/comment/context, issue/reporter, titleBar; ports/*, statusBar/remoteIndicator, menuBar/home class 4; touchBar class 2 | contributes.menus and contributes.submenus for editor/context, explorer/context, editor/title/context (menus::extension_menus): cargo test -p app menus explorer_actions; terminal/context, terminal/title/context, debug/callstack/context, debug/variables/context, debug/watch/context, scm/resourceFolder/context and scm/historyItemRef/context (cargo test -p app api_menu_keys_reach_their_menus a_folder_row a_history_item_menu); viewContainer/title on the Run and Debug title with its debugViewlet.ts items (cargo test -p app view_container_title the_debug_container_more_actions; ui-pair `menus/view-container-title.json` with `ARGS=--extensionDevelopmentPath=port/fixtures/extensions/menus`, the rocket and the `...` items match the reference); extension/context in the Manage and row menus after extensionsActions.ts `ManageExtensionAction` (cargo test -p app the_manage_menu_lists_the_extension_context_menu; ui-pair `menus/extension-context.json`, the Copy, Settings and contributed groups match the reference); editor/title/run as the editor title's Run or Debug... split button after menuEntryActionViewItem.ts `DropdownWithDefaultActionViewItem` (cargo test -p app editor_title_run; ui-pair `menus/editor-title-run.json` with `FILE=LICENSE.txt` and an absolute `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus`: the split button, its open dropdown and the picked primary with the chevron hover match the reference); the AI menu ids (chat/*, chatSessions/*, agents/*, agents/titleBar, editor/context/chat, searchPanel/aiResults/commands) removed by decision (port/notes.md:35); ui-pair README.md Explorer menu (port/results/contextmenu.md); other menu ids wait for their views |-| workbench/services/actions | workbench service | M9 | ported | [3 L] contributes.menus: unmapped ids of menusExtensionPoint.ts, each needing its view's menu first: testing/item/gutter, testing/profiles/context, testing/item/result, testing/message/context, testing/message/content, webview/context, editor/title/run, modalEditor/editorTitle, editor/inlineCompletions/actions, diffEditor/gutter/selection, multiDiffEditor/content, notebook/cell/execute, notebook/kernelSource, notebook/variables/context, mergeEditor/result/title, comments/comment/editorActions, comments/commentThread/additionalActions, comments/commentThread/title/context, comments/commentThread/comment/context, issue/reporter, titleBar; ports/*, statusBar/remoteIndicator, menuBar/home class 4; touchBar class 2 | contributes.menus and contributes.submenus for editor/context, explorer/context, editor/title/context (menus::extension_menus): cargo test -p app menus explorer_actions; terminal/context, terminal/title/context, debug/callstack/context, debug/variables/context, debug/watch/context, scm/resourceFolder/context and scm/historyItemRef/context (cargo test -p app api_menu_keys_reach_their_menus a_folder_row a_history_item_menu); viewContainer/title on the Run and Debug title with its debugViewlet.ts items (cargo test -p app view_container_title the_debug_container_more_actions; ui-pair `menus/view-container-title.json` with `ARGS=--extensionDevelopmentPath=port/fixtures/extensions/menus`, the rocket and the `...` items match the reference); extension/context in the Manage and row menus after extensionsActions.ts `ManageExtensionAction` (cargo test -p app the_manage_menu_lists_the_extension_context_menu; ui-pair `menus/extension-context.json`, the Copy, Settings and contributed groups match the reference); the AI menu ids (chat/*, chatSessions/*, agents/*, agents/titleBar, editor/context/chat, searchPanel/aiResults/commands) removed by decision (port/notes.md:35); ui-pair README.md Explorer menu (port/results/contextmenu.md); other menu ids wait for their views |++| workbench/services/actions | workbench service | M9 | ported | [3 L] contributes.menus: unmapped ids of menusExtensionPoint.ts, each needing its view's menu first: testing/item/gutter, testing/profiles/context, testing/item/result, testing/message/context, testing/message/content, webview/context, modalEditor/editorTitle, editor/inlineCompletions/actions, diffEditor/gutter/selection, multiDiffEditor/content, notebook/cell/execute, notebook/kernelSource, notebook/variables/context, mergeEditor/result/title, comments/comment/editorActions, comments/commentThread/additionalActions, comments/commentThread/title/context, comments/commentThread/comment/context, issue/reporter, titleBar; ports/*, statusBar/remoteIndicator, menuBar/home class 4; touchBar class 2 | contributes.menus and contributes.submenus for editor/context, explorer/context, editor/title/context (menus::extension_menus): cargo test -p app menus explorer_actions; terminal/context, terminal/title/context, debug/callstack/context, debug/variables/context, debug/watch/context, scm/resourceFolder/context and scm/historyItemRef/context (cargo test -p app api_menu_keys_reach_their_menus a_folder_row a_history_item_menu); viewContainer/title on the Run and Debug title with its debugViewlet.ts items (cargo test -p app view_container_title the_debug_container_more_actions; ui-pair `menus/view-container-title.json` with `ARGS=--extensionDevelopmentPath=port/fixtures/extensions/menus`, the rocket and the `...` items match the reference); extension/context in the Manage and row menus after extensionsActions.ts `ManageExtensionAction` (cargo test -p app the_manage_menu_lists_the_extension_context_menu; ui-pair `menus/extension-context.json`, the Copy, Settings and contributed groups match the reference); editor/title/run as the editor title's Run or Debug... split button after menuEntryActionViewItem.ts `DropdownWithDefaultActionViewItem` (cargo test -p app editor_title_run; ui-pair `menus/editor-title-run.json` with `FILE=LICENSE.txt` and an absolute `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus`: the split button, its open dropdown and the picked primary with the chevron hover match the reference); the AI menu ids (chat/*, chatSessions/*, agents/*, agents/titleBar, editor/context/chat, searchPanel/aiResults/commands) removed by decision (port/notes.md:35); ui-pair README.md Explorer menu (port/results/contextmenu.md); other menu ids wait for their views || workbench/services/activity | workbench service | M11 | verified | | activity badges of view containers: view `$setBadge` values, the SCM and Extensions counts and `withProgress` progress badges (300 ms delay, kept 300 ms), numbers summed and shortened as compositeBarActions.ts (workbench/activity.rs; cargo test -p app -- activity progress_at_a_view_container_badges_its_activity_bar_item); `withCompositeProgress` progress bars of a container (side bar or panel title bottom) and of a view (pane header, merged title): `options.delay`, discrete worked of total, infinite, gone on done (progress_at_a_view_container_shows_its_progress_bar_under_the_title); ui-pair `activity-badge.json` on a git folder with two changes: the Source Control badge matches the reference (AE 1808 over the window, port/results/layout.md) || workbench/services/agentEditorComments | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/services/agentHost | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |