Visual Studio Code, rebuilt in Rust
Rust
feat(titlebar): show MenuId.TitleBar's global toolbar actions
rokartur06047ae3d499
diff --git a/native/crates/app/src/menus.rs b/native/crates/app/src/menus.rsindex 876e3f8482f..c4bfffd749e 100644--- a/native/crates/app/src/menus.rs+++ b/native/crates/app/src/menus.rs@@ -70,6 +70,8 @@ pub enum MenuId {/// `MenuId.EmptyEditorGroupContext`: the context menu of an empty editor group.EmptyEditorGroupContext,StickyScrollContext,+ /// `MenuId.TitleBar`: the title bar's global toolbar.+ TitleBar,TitleBarContext,TitleBarTitleContext,ScmTitle,@@ -733,6 +735,8 @@ const WORKBENCH_MENUS: &[Row] = &[(MenuId::NotebookToolbar, None, "workbench.notebook.layout.configure", "Customize Notebook Layout", "notebookLayout", 1., Some("config.notebook.globalToolbar == true"), None),// mergeEditor commands.ts `ResetToBaseAndAutoMergeCommand`.(MenuId::MergeInputResultToolbar, None, "mergeEditor.resetResultToBaseAndAutoMerge", "Reset Result", "primary", 0., None, Some("isMergeEditor")),+ // notificationsCommands.ts: the title bar bell.+ (MenuId::TitleBar, None, "notifications.toggleList", "Toggle Notifications", "navigation", 10000., Some("config.workbench.notifications.position == 'top-right' && config.workbench.notifications.showInTitleBar == true"), None),];/// windowActions.ts, layoutActions.ts, auxiliaryBarActions.ts, panelActions.ts, activitybarPart.ts, toggleMinimap.ts, stickyScrollActions.ts and@@ -956,7 +960,7 @@ pub fn workbench_menus() -> Vec<MenuItem> {/// 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); 58] = [+const API_MENUS: [(&str, MenuId); 59] = [("file/newFile", MenuId::NewFile),("editor/context", MenuId::EditorContext),("explorer/context", MenuId::ExplorerContext),@@ -1013,6 +1017,7 @@ const API_MENUS: [(&str, MenuId); 58] = [("comments/commentThread/title/context", MenuId::CommentThreadTitleContext),("comments/commentThread/comment/context", MenuId::CommentThreadCommentContext),("mergeEditor/result/title", MenuId::MergeInputResultToolbar),+ ("titleBar", MenuId::TitleBar),("terminal/context", MenuId::TerminalInstanceContext),("terminal/title/context", MenuId::TerminalTabContext),];@@ -1120,6 +1125,7 @@ pub fn extension_menus(extensions: &[ScannedExtension]) -> Vec<MenuItem> {"comments/commentThread/additionalActions" => Some("contribCommentThreadAdditionalMenu"),"comments/commentThread/title/context" | "comments/commentThread/comment/context" => Some("contribCommentPeekContext"),"mergeEditor/result/title" => Some("contribMergeEditorMenus"),+ "titleBar" => Some("contribTitleBar"),"scm/historyItemRef/context" => Some("contribSourceControlHistoryItemMenu"),"viewContainer/title" => Some("contribViewContainerTitle"),_ => None,diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rsindex 778153d15dd..d769e3f952e 100644--- a/native/crates/app/src/workbench.rs+++ b/native/crates/app/src/workbench.rs@@ -248,6 +248,7 @@ mod empty_editor_hint;mod text_input;mod timeline_view;mod title_bar_actions;+use title_bar_actions::TITLE_BAR_LEADING_GROUP;mod type_navigation;pub(crate) mod unattended_restart;mod unicode_highlight;@@ -1410,6 +1411,14 @@ impl Workbench {];// titlebarPart.ts `createActionToolBar`: the editor, layout and global actions are one toolbar, one tab stop.let mut actions = Vec::new();+ // titlebarPart.ts: `MenuId.TitleBar`'s `0_leading` group and a separator lead the toolbar.+ if !auxiliary {+ let leading = self.title_bar_global_buttons(TITLE_BAR_LEADING_GROUP, foreground, window, cx);+ if !leading.is_empty() {+ actions.extend(leading.into_iter().map(|(id, button)| title_item(actions_bar, &id, button, cx)));+ actions.push(div().w(px(1.)).h(px(16.)).my(px(3.)).mx(px(4.)).bg(disabled).into_any_element());+ }+ }// titlebarPart.ts: a compact editor window shows `MenuId.CompactWindowEditorTitle` (a diff's Previous and// Next Change).if compact {@@ -1435,8 +1444,9 @@ impl Workbench {}}// titlebarPart.ts: the global actions (`MenuId.TitleBar`, the bell) come after the layout controls.- if let Some(bell) = self.notifications_title_bar_item(foreground, cx).filter(|_| !auxiliary) {- actions.push(title_item(actions_bar, "notifications", bell, cx));+ if !auxiliary {+ let global = self.title_bar_global_buttons("navigation", foreground, window, cx);+ actions.extend(global.into_iter().map(|(id, button)| title_item(actions_bar, &id, button, cx)));}// titlebarPart.ts: with the activity bar on top or bottom, its global Manage action moves to the title bar.// globalCompositeBar.ts `SimpleGlobalActivityActionViewItem`: a left mouse down opens MenuId.GlobalActivity below it.@@ -1459,8 +1469,9 @@ impl Workbench {}));actions.push(title_item(actions_bar, "manage", manage, cx));}- // The toolbar's overflow ends it: the editor actions' secondary ones and Customize Layout.- if editor_actions && (layout_control_enabled || self.editors.active_index().is_some()) {+ // The toolbar's overflow ends it: the editor actions' secondary ones, Customize Layout and the other global groups.+ let global_overflow = !auxiliary && !self.title_bar_global_secondary_actions(&self.key_context(window)).is_empty();+ if editor_actions && (layout_control_enabled || self.editors.active_index().is_some()) || global_overflow {let more = self.editor_title_more_button(foreground, true, cx);actions.push(title_item(actions_bar, "more", more, cx));}diff --git a/native/crates/app/src/workbench/editor_menus.rs b/native/crates/app/src/workbench/editor_menus.rsindex d411d9ccf5e..69ddd9105f1 100644--- a/native/crates/app/src/workbench/editor_menus.rs+++ b/native/crates/app/src/workbench/editor_menus.rs@@ -81,17 +81,25 @@ impl Workbench {context.insert("isSessionsWindow".into(), json!(false));let mut actions = Vec::new();// titlebarPart.ts `createActionToolBarMenus`: the title bar has no editor actions without an active editor.- if !in_title_bar || self.editors.active_index().is_some() {+ let editor_actions = !in_title_bar || self.title_bar_has_editor_actions();+ if editor_actions && (!in_title_bar || self.editors.active_index().is_some()) {actions = self.editor_title_secondary_actions(&context);}// layoutActions.ts `CustomizeLayoutAction`: in `MenuId.LayoutControlMenu`'s `1_layout` group while the editor// actions are in the title bar.- if in_title_bar && self.setting("workbench.layoutControl.enabled") != json!(false) {+ if in_title_bar && editor_actions && self.setting("workbench.layoutControl.enabled") != json!(false) {if !actions.is_empty() {actions.push(MenuAction::Separator);}actions.push(MenuAction::Command { id: "workbench.action.customizeLayout".into(), title: "Customize Layout...".into(), enabled: true, checked: false, alt: None });}+ if in_title_bar {+ let global = self.title_bar_global_secondary_actions(&context);+ if !actions.is_empty() && !global.is_empty() {+ actions.push(MenuAction::Separator);+ }+ actions.extend(global);+ }let args = self.editors.active().map(document_uri).into_iter().collect();self.show_dropdown_menu_actions(actions, &context, anchor, args, window, cx);self.editor_groups.title_menu_group = Some(self.editors.id);diff --git a/native/crates/app/src/workbench/notifications_view.rs b/native/crates/app/src/workbench/notifications_view.rsindex 9edbe12c646..70864a8297f 100644--- a/native/crates/app/src/workbench/notifications_view.rs+++ b/native/crates/app/src/workbench/notifications_view.rs@@ -940,18 +940,13 @@ impl Workbench {Some(self.status_item_hover(item, None))}- /// notificationsCommands.ts's `MenuId.TitleBar` bell, shown for the top right position.- pub(super) fn notifications_title_bar_item(&self, foreground: Rgba, cx: &mut Context<Self>) -> Option<Stateful<Div>> {- if self.notifications_position() != Position::TopRight || self.setting("workbench.notifications.showInTitleBar") == Value::Bool(false) {- return None;- }- let item = self- .icon("bell", 22., 16., foreground)+ /// notificationsCommands.ts's `MenuId.TitleBar` bell.+ pub(super) fn notifications_title_bar_item(&self, foreground: Rgba, cx: &mut Context<Self>) -> Stateful<Div> {+ self.icon("bell", 22., 16., foreground).id("titlebar.notifications").cursor_pointer().on_click(cx.listener(|workbench, _: &ClickEvent, window, cx| drop(workbench.execute_command("notifications.toggleList", Vec::new(), window, cx))))- .child(self.action_hover("Toggle Notifications", "notifications.toggleList", HoverOptions::instant()));- Some(item)+ .child(self.action_hover("Toggle Notifications", "notifications.toggleList", HoverOptions::instant()))}fn notifications_tooltip(&self, in_progress: usize) -> String {diff --git a/native/crates/app/src/workbench/notifications_view/tests.rs b/native/crates/app/src/workbench/notifications_view/tests.rsindex aad39acd701..6e745b8f5e2 100644--- a/native/crates/app/src/workbench/notifications_view/tests.rs+++ b/native/crates/app/src/workbench/notifications_view/tests.rs@@ -104,7 +104,7 @@ fn the_position_moves_the_bell_between_status_bar_sides_and_the_title_bar(cx: &mlet foreground = gpui::rgba(0xffffffff);let left = workbench.notifications_status_item(true, foreground, cx).is_some();let right = workbench.notifications_status_item(false, foreground, cx).is_some();- let title_bar = workbench.notifications_title_bar_item(foreground, cx).is_some();+ let title_bar = workbench.title_bar_global_buttons("navigation", foreground, window, cx).iter().any(|(id, _)| id == "notifications.toggleList");(left, right, title_bar)})};diff --git a/native/crates/app/src/workbench/title_bar_actions.rs b/native/crates/app/src/workbench/title_bar_actions.rsindex 20823a69f22..1dcc1dc2030 100644--- a/native/crates/app/src/workbench/title_bar_actions.rs+++ b/native/crates/app/src/workbench/title_bar_actions.rs@@ -4,17 +4,19 @@use std::collections::HashMap;use std::path::{Path, PathBuf};-use gpui::{Bounds, Context, Pixels, Point, Size, Window};+use gpui::{Bounds, Context, Div, InteractiveElement, Pixels, Point, Rgba, Size, Stateful, Window};use serde_json::{Value, json};use super::Workbench;use crate::commands::Outcome;use crate::contextkey;-use crate::menus::{EDITOR_ACTIONS_TOGGLE, Entry, MenuAction, MenuId, MenuItem, TITLE_BAR_TOGGLES, menu_actions};+use crate::menus::{EDITOR_ACTIONS_TOGGLE, Entry, MenuAction, MenuId, MenuItem, TITLE_BAR_TOGGLES, menu_actions, menu_group_actions};const REVEAL_PATH_COMMAND: &str = "workbench.action.revealPathInFinder";/// The command center's one item, `CommandCenterCenter`.const QUICK_OPEN_WITH_MODES: &str = "workbench.action.quickOpenWithModes";+/// titlebarActions.ts `TitleBarLeadingActionsGroup`.+pub(super) const TITLE_BAR_LEADING_GROUP: &str = "0_leading";impl Workbench {pub(super) fn register_title_bar_actions(&mut self) {@@ -72,6 +74,28 @@ impl Workbench {self.show_context_menu_actions(actions, &context, Bounds { origin: pointer, size: Size::default() }, Vec::new(), window, cx);}+ /// titlebarPart.ts `globalToolbarMenu`: the buttons of `MenuId.TitleBar`'s `group`, `0_leading` or `navigation`.+ pub(super) fn title_bar_global_buttons(&self, group: &str, foreground: Rgba, window: &Window, cx: &mut Context<Self>) -> Vec<(String, Stateful<Div>)> {+ let context = self.key_context(window);+ let mut buttons = Vec::new();+ for action in menu_group_actions(&self.menus, MenuId::TitleBar, &context, |item_group| item_group == group) {+ // shortcut: a submenu gets no dropdown button, port SubmenuItemActionViewItem when an extension needs one.+ let MenuAction::Command { id, title, .. } = action else { continue };+ let button = match id.as_str() {+ "notifications.toggleList" => self.notifications_title_bar_item(foreground, cx),+ _ => self.command_button(&id, title, Vec::new(), foreground, cx),+ };+ let selector = format!("title-bar-action-{id}");+ buttons.push((id, button.debug_selector(move || selector)));+ }+ buttons+ }++ /// `MenuId.TitleBar`'s groups but `0_leading` and `navigation`, which go to the toolbar's overflow.+ pub(super) fn title_bar_global_secondary_actions(&self, context: &HashMap<String, Value>) -> Vec<MenuAction> {+ menu_group_actions(&self.menus, MenuId::TitleBar, context, |group| group != TITLE_BAR_LEADING_GROUP && group != "navigation")+ }+fn title_bar_context(&self, window: &Window) -> HashMap<String, Value> {let mut context = self.key_context(window);for (setting, ..) in TITLE_BAR_TOGGLES {diff --git a/native/crates/app/src/workbench/title_bar_actions/tests.rs b/native/crates/app/src/workbench/title_bar_actions/tests.rsindex 0a200f58ba8..27151d6c9e8 100644--- a/native/crates/app/src/workbench/title_bar_actions/tests.rs+++ b/native/crates/app/src/workbench/title_bar_actions/tests.rs@@ -10,7 +10,7 @@ use serde_json::{Value, json};use super::reveal_path_items;use crate::host_sync::HostSync;use crate::languages::Languages;-use crate::menus::MenuAction;+use crate::menus::{Entry, MenuAction, MenuId, MenuItem};use crate::theme::load_theme;use crate::workbench::Workbench;@@ -155,6 +155,40 @@ fn the_command_center_label_is_a_22px_line(cx: &mut TestAppContext) {assert_eq!(label.size.height, px(22.));}+/// titlebarPart.ts `createActionToolBarMenus`: `MenuId.TitleBar`'s `0_leading` group leads the toolbar, its+/// `navigation` group follows the layout controls, sorted with the bell (order 10000), and its other groups go to the+/// overflow.+#[gpui::test]+fn the_title_bar_menu_shows_contributed_global_actions(cx: &mut TestAppContext) {+ let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();+ let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();+ let theme = load_theme(&[themes], "Dark Modern").unwrap();+ let dir = std::env::temp_dir().join(format!("code-gpui-title-bar-global-{}", std::process::id()));+ let _ = std::fs::remove_dir_all(&dir);+ std::fs::create_dir_all(dir.join("User")).unwrap();+ std::fs::write(dir.join("User/settings.json"), r#"{ "workbench.notifications.position": "top-right" }"#).unwrap();+ let settings = Arc::new(Mutex::new(Settings::load(Registry::with_extensions(&[]), dir.join("User"), None)));+ let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), settings, HostSync::new(std::sync::mpsc::channel().0), cx));+ workbench.update(cx, |workbench, _| {+ for (id, group) in [("port.lead", "0_leading"), ("port.nav", "navigation"), ("port.more", "1_more")] {+ let entry = Entry::Command { id: id.into(), precondition: None, toggled: None, alt: None };+ workbench.menus.push(MenuItem { menu: MenuId::TitleBar, entry, title: id.into(), group: group.into(), order: 1., when: None });+ }+ });+ cx.update(|window, _| window.refresh());+ cx.run_until_parked();+ let left = |selector: &'static str, cx: &mut VisualTestContext| cx.debug_bounds(selector).unwrap_or_else(|| panic!("{selector} is drawn")).left();+ let lead = left("title-bar-action-port.lead", cx);+ let customize = left("workbench.action.customizeLayout", cx);+ let nav = left("title-bar-action-port.nav", cx);+ let bell = left("title-bar-action-notifications.toggleList", cx);+ assert!(lead < customize && customize < nav && nav < bell, "{lead:?} {customize:?} {nav:?} {bell:?}");+ let more = cx.debug_bounds("title-bar-more").expect("the overflow holds port.more");+ workbench.update_in(cx, |workbench, window, cx| workbench.show_editor_title_menu(more, true, window, cx));+ assert_eq!(menu_titles(&workbench, cx), ["port.more"]);+ std::fs::remove_dir_all(dir).unwrap();+}+/// titlebarActions.ts `ToggleEditorActions`: shown while the editor actions can sit in the title bar; hiding keeps/// the location in profile storage, showing restores it without tabs and picks the title bar with them.#[gpui::test]diff --git a/port/fixtures/extensions/menus/package.json b/port/fixtures/extensions/menus/package.jsonindex a2fb6065bb2..115b0c546fd 100644--- a/port/fixtures/extensions/menus/package.json+++ b/port/fixtures/extensions/menus/package.json@@ -8,7 +8,8 @@},"enabledApiProposals": ["contribViewContainerTitle",- "contribMergeEditorMenus"+ "contribMergeEditorMenus",+ "contribTitleBar"],"contributes": {"commands": [@@ -48,6 +49,20 @@{"command": "port.menus.mergeMore","title": "Port Merge Action"+ },+ {+ "command": "port.menus.titleLead",+ "title": "Port Title Lead",+ "icon": "$(rocket)"+ },+ {+ "command": "port.menus.titleNav",+ "title": "Port Title Nav",+ "icon": "$(heart)"+ },+ {+ "command": "port.menus.titleMore",+ "title": "Port Title Action"}],"menus": {@@ -80,6 +95,20 @@"when": "extension == vscode.emmet"}],+ "titleBar": [+ {+ "command": "port.menus.titleLead",+ "group": "0_leading"+ },+ {+ "command": "port.menus.titleNav",+ "group": "navigation"+ },+ {+ "command": "port.menus.titleMore",+ "group": "1_port"+ }+ ],"mergeEditor/result/title": [{"command": "port.menus.mergeApply",diff --git a/port/fixtures/ui-pair/menus/title-bar.json b/port/fixtures/ui-pair/menus/title-bar.jsonnew file mode 100644index 00000000000..4259db657b4--- /dev/null+++ b/port/fixtures/ui-pair/menus/title-bar.json@@ -0,0 +1,7 @@+[+ {"wait": 15000},+ {"shot": "title"},+ {"click": [1000, 18]},+ {"wait": 1000},+ {"shot": "more"}+]diff --git a/port/ledger.md b/port/ledger.mdindex 29b1bed4dfd..909821c3aaf 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -361,7 +361,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| 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 | | a hovered entry keeps its outline and icon hover colors while keys are typed under the still pointer (cargo test -p app a_hovered_status_item_is_outlined_and_its_icons_take_the_hover_foreground; ui-pair with Cmd+N and typing after the `problems` step matches the reference); an extension entry's `$(icon)`s and progress spinner in its kind's hover foreground, an entry with its own `color` keeping it on hover (statusbarItem.ts `applyColor`; cargo test -p app a_hovered_extension_entry_s_icons_follow_its_label_color); ui-pair port/fixtures/ui-pair/statusbar-hover.json hc with `PORT_MESSAGES=status`, the messages extension and `statusBarItem.hoverForeground` #FF0000: the hovered plain, colored, bell and problems entries match the reference (dashed outline, red icons and text, the colored entry green; 223 to 403 differing pixels of 48000 at 3% fuzz); the language detection entry draws its icon with the same `status_item_icon`; 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), a hovered label's HC dashed `contrastActiveBorder` outline and icons in `statusBarItem.hoverForeground` (a_hovered_status_item_is_outlined_and_its_icons_take_the_hover_foreground), 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 | ported | [3 M] workbench.rs title bar: no global toolbar of `titleBar` (titlebarPart.ts:854 `globalToolbarMenu`); contributed items do not show | 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/titlebar | workbench part | M9 | ported | [3 S] workbench.rs title bar: a non-compact editor window's title bar shows no `MenuId.TitleBar` actions (titlebarPart.ts `globalActionsEnabled` is `!isCompact`); [3 S] title_bar_actions.rs `title_bar_global_buttons`: a submenu contributed to `titleBar` gets no dropdown button (SubmenuItemActionViewItem) | `MenuId.TitleBar` (`titleBar`, proposal `contribTitleBar`): `0_leading` before the layout controls, `navigation` after them sorted with the bell, other groups in the overflow (cargo test -p app the_title_bar_menu_shows_contributed_global_actions; ui-pair `menus/title-bar.json` with port/fixtures/extensions/menus); 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 || workbench/services/accounts | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |