Visual Studio Code, rebuilt in Rust
Rust
fix(editor): draw pill tabs for the pill modern UI tab style
rokartura6e6f0695252
diff --git a/native/crates/app/src/theme.rs b/native/crates/app/src/theme.rsindex c6d554c6d74..85c608619cb 100644--- a/native/crates/app/src/theme.rs+++ b/native/crates/app/src/theme.rs@@ -436,10 +436,15 @@ fn less_prominent(color: Rgba, background: Rgba, factor: f32, transparency: f32)from_hsla(h, s, l, round3(a * transparency as f64))}-/// CSS `color-mix(in srgb, color amount, background)`.+/// CSS `color-mix(in srgb, color amount, background)`, interpolated premultiplied: a mix with `transparent` keeps the+/// color and lowers its alpha.pub(crate) fn color_mix(color: Rgba, amount: f32, background: Rgba) -> Rgba {- let mix = |c: f32, b: f32| c * amount + b * (1. - amount);- Rgba { r: mix(color.r, background.r), g: mix(color.g, background.g), b: mix(color.b, background.b), a: mix(color.a, background.a) }+ let a = color.a * amount + background.a * (1. - amount);+ if a == 0. {+ return gpui::transparent_black().into();+ }+ let mix = |c: f32, b: f32| (c * color.a * amount + b * background.a * (1. - amount)) / a;+ Rgba { r: mix(color.r, background.r), g: mix(color.g, background.g), b: mix(color.b, background.b), a }}/// `Color.makeOpaque`: RGBA's `_clampUint8` truncates each blended byte (`| 0`). The alpha is RGBA's, rounded to 3@@ -651,6 +656,10 @@ fn registry_default(key: &str, kind: ThemeKind) -> ColorValue {// oneOf(list.inactiveSelectionForeground, foreground), and the first has no default."modernTab.activeForeground" => (Key("foreground"), Key("foreground"), Key("foreground")),"modernEditorTab.activeForeground" => (Key("modernTab.activeForeground"), Key("modernTab.activeForeground"), Key("modernTab.activeForeground")),+ "modernEditorTab.activeBackground" => (Key("modernTab.activeBackground"), Key("modernTab.activeBackground"), Key("modernTab.activeBackground")),+ "modernEditorTab.inactiveBackground" => (Hex("#0000"), Hex("#0000"), Hex("#0000")),+ "modernEditorTab.hoverBackground" => (Key("modernTab.hoverBackground"), Key("modernTab.hoverBackground"), Key("modernTab.hoverBackground")),+ "modernEditorTab.activeHoverBackground" => (Key("modernEditorTab.hoverBackground"), Key("modernEditorTab.hoverBackground"), Key("modernEditorTab.hoverBackground")),"modernActivityBarItem.activeBackground" => (Key("modernTab.activeBackground"), Key("modernTab.activeBackground"), Key("modernTab.activeBackground")),"modernActivityBar.background" => (Key("activityBar.background"), Key("activityBar.background"), Key("activityBar.background")),"modernActivityBar.inactiveBackground" => (Key("modernActivityBar.background"), Key("modernActivityBar.background"), Key("modernActivityBar.background")),@@ -1084,6 +1093,10 @@ fn hc_light_default(key: &str) -> ColorValue {"modernTab.activeBackground" => Key("list.inactiveSelectionBackground"),"modernTab.activeForeground" => Key("foreground"),"modernEditorTab.activeForeground" => Key("modernTab.activeForeground"),+ "modernEditorTab.activeBackground" => Key("modernTab.activeBackground"),+ "modernEditorTab.inactiveBackground" => Hex("#0000"),+ "modernEditorTab.hoverBackground" => Key("modernTab.hoverBackground"),+ "modernEditorTab.activeHoverBackground" => Key("modernEditorTab.hoverBackground"),"modernActivityBarItem.activeBackground" => Key("modernTab.activeBackground"),"modernActivityBar.background" => Key("activityBar.background"),"modernActivityBar.inactiveBackground" => Key("modernActivityBar.background"),@@ -1568,6 +1581,10 @@ mod tests {let mixed = color_mix(parse_hex("#CCCCCC").unwrap(), 0.06, parse_hex("#2B2B2B").unwrap());assert!((mixed.r - 0.20651).abs() < 0.0001, "{mixed:?}");assert_eq!(mixed.a, 1.);+ // tabs.css `color-mix(in srgb, var(--vscode-foreground) 50%, transparent)`: the reference's pill label is #727272+ // over #181818, the foreground at half alpha.+ let half = color_mix(parse_hex("#CCCCCC").unwrap(), 0.5, gpui::transparent_black().into());+ assert_eq!((half.r, half.a), (parse_hex("#CCCCCC").unwrap().r, 0.5));}#[test]diff --git a/native/crates/app/src/workbench/editor_groups/tests.rs b/native/crates/app/src/workbench/editor_groups/tests.rsindex 872c22850a7..4371566764a 100644--- a/native/crates/app/src/workbench/editor_groups/tests.rs+++ b/native/crates/app/src/workbench/editor_groups/tests.rs@@ -528,3 +528,56 @@ fn a_shrink_sticky_tab_drops_its_name_before_its_badge(cx: &mut TestAppContext)assert!(badge.right() > label.right());std::fs::remove_dir_all(dir).unwrap();}++/// modernUI tabs.css with `workbench.experimental.modernUIEditorTabStyle: pill` (ui-pair bugs/pill-tabs.json): the+/// strip has 2px before its first tab, each tab a 24px pill 4px below the strip's top and 2px in from the tab's sides,+/// 26px of each after its name for the close action, shown or not, and a divider before+/// every tab but the first, the active one's neighbor included.+#[gpui::test]+fn the_pill_tab_style_draws_floating_pills(cx: &mut TestAppContext) {+ let (dir, workbench, cx) = workbench_with("pill", &["a.txt", "b.txt", "c.txt"], cx);+ workbench.update(cx, |workbench, cx| {+ let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None);+ workbench.settings = std::sync::Arc::new(std::sync::Mutex::new(settings));+ std::fs::create_dir_all(dir.join("User")).unwrap();+ std::fs::write(dir.join("User/settings.json"), r#"{ "workbench.experimental.modernUIEditorTabStyle": "pill" }"#).unwrap();+ workbench.reload_changed_settings_files(cx);+ workbench.editors.activate(0);+ workbench.editors_changed(cx);+ });+ cx.run_until_parked();+ let strip = cx.debug_bounds("editor-tab-strip").expect("the tab strip");+ let active = cx.debug_bounds("tab-pill-0").expect("the active tab's pill");+ assert_eq!((active.left() - strip.left(), active.top() - strip.top(), active.size.height), (gpui::px(4.), gpui::px(4.), gpui::px(24.)));+ let name = cx.debug_bounds("tab-name-0").unwrap();+ assert_eq!(active.right() - name.right(), gpui::px(26.));+ let inactive = cx.debug_bounds("tab-pill-1").expect("an inactive tab's pill");+ assert_eq!(inactive.right() - cx.debug_bounds("tab-name-1").unwrap().right(), gpui::px(26.));+ assert_eq!(inactive.left() - active.right(), gpui::px(4.), "2px of each tab between the pills");+ assert!(cx.debug_bounds("tab-divider-0").is_none());+ assert!(cx.debug_bounds("tab-divider-1").is_some(), "the active tab's neighbor has a divider too");+ std::fs::remove_dir_all(dir).unwrap();+}++/// tabs.css `two-tab-bars` with pills: both bars are 32px high, the pinned bar's pills 6px below its top and the+/// lower bar's 2px below its own, so 4px separate the two rows where two 32px bars would leave 8px.+#[gpui::test]+fn pills_on_separate_rows_keep_a_4px_gap(cx: &mut TestAppContext) {+ let (dir, workbench, cx) = workbench_with("pill-rows", &["a.txt", "b.txt", "c.txt"], cx);+ workbench.update(cx, |workbench, cx| {+ let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None);+ workbench.settings = std::sync::Arc::new(std::sync::Mutex::new(settings));+ std::fs::create_dir_all(dir.join("User")).unwrap();+ std::fs::write(dir.join("User/settings.json"), r#"{ "workbench.experimental.modernUIEditorTabStyle": "pill", "workbench.editor.pinnedTabsOnSeparateRow": true }"#).unwrap();+ workbench.reload_changed_settings_files(cx);+ workbench.editors.activate(0);+ workbench.editors_changed(cx);+ });+ run(&workbench, "workbench.action.pinEditor", cx);+ let strip = cx.debug_bounds("editor-tab-strip").expect("the lower bar");+ let pinned = cx.debug_bounds("tab-pill-0").expect("the pinned tab's pill");+ let lower = cx.debug_bounds("tab-pill-1").expect("a lower tab's pill");+ assert_eq!((pinned.top() - (strip.top() - gpui::px(32.)), lower.top() - strip.top()), (gpui::px(6.), gpui::px(2.)));+ assert_eq!(lower.top() - pinned.bottom(), gpui::px(4.));+ std::fs::remove_dir_all(dir).unwrap();+}diff --git a/native/crates/app/src/workbench/editor_view.rs b/native/crates/app/src/workbench/editor_view.rsindex 60c2a2fefae..32260c8e273 100644--- a/native/crates/app/src/workbench/editor_view.rs+++ b/native/crates/app/src/workbench/editor_view.rs@@ -185,13 +185,15 @@ impl Workbench {// multieditortabscontrol.css: .editor-actions is cursor default, its action items pointer (actionbar.css).// Centered above the strip's bottom border, as the tabs are.let actions = self.editor_title_toolbar(window, cx).map(|actions| actions.cursor_default().h(px(TAB_STRIP_HEIGHT - 1.)).px(px(4.)).gap(px(4.)));- // The line under the strip (tabs-border-bottom) runs below the shoulders; the active fill covers it.- let bottom_line = div().absolute().bottom_0().left_0().right_0().h(px(1.)).bg(self.connected_tab_border());+ // The line under the strip (tabs-border-bottom) runs below the shoulders; the active fill covers it. Pills+ // float without it (modernUI tabs.css `--modern-ui-editor-tabs-border: transparent`).+ let connected = self.connected_editor_tabs();+ let bottom_line = connected.then(|| div().absolute().bottom_0().left_0().right_0().h(px(1.)).bg(self.connected_tab_border()));// multiRowEditorTabsControl.ts: with `workbench.editor.pinnedTabsOnSeparateRow` the sticky tabs get a bar of// their own above the others while the group has both (`two-tab-bars`); only the lower bar has the actions.let count = self.editors.editors.len();let sticky_count = self.editors.sticky_count();- let two_bars = sticky_count > 0 && sticky_count < count && self.setting("workbench.editor.pinnedTabsOnSeparateRow") == json!(true);+ let two_bars = self.two_tab_bars();let lower_tabs = if two_bars { sticky_count..count } else { 0..count };// editortabscontrol.css: the whole title, tabs and their close buttons included, is cursor pointer.let lower = div()@@ -201,24 +203,25 @@ impl Workbench {.flex_none().cursor_pointer().flex()- .bg(self.tab_strip_background())+ .map(|lower| match connected {+ true => lower.bg(self.tab_strip_background()),+ // tabs.css: the pills' strip is editorGroupHeader.tabsBackground over the editor's, 2px in from the start.+ false => lower.bg(self.pill_tab_strip_background()).pl(px(2.)),+ }).when(!two_bars, |lower| self.clip_to_part_corners(lower))- .child(bottom_line)+ .children(bottom_line).child(self.tab_bar_tabs(lower_tabs, false, TAB_STRIP_HEIGHT, window, cx)).children(actions);if !two_bars {return lower;}// connectedEditorTabs.css `.connected-tab-upper-bar`: 2px above and before its tabs, none of them connected.- let upper = div()- .h(px(UPPER_TAB_BAR_HEIGHT))- .flex_none()- .cursor_pointer()- .pt(px(2.))- .pl(px(2.))- .flex()- .bg(self.tab_strip_background())- .child(self.tab_bar_tabs(0..sticky_count, true, UPPER_TAB_BAR_HEIGHT - 2., window, cx));+ // tabs.css: pills keep both bars 32px high and shift their fills instead.+ let upper = div().flex_none().cursor_pointer().pl(px(2.)).flex();+ let upper = match connected {+ true => upper.h(px(UPPER_TAB_BAR_HEIGHT)).pt(px(2.)).bg(self.tab_strip_background()).child(self.tab_bar_tabs(0..sticky_count, true, UPPER_TAB_BAR_HEIGHT - 2., window, cx)),+ false => upper.h(px(TAB_STRIP_HEIGHT)).bg(self.pill_tab_strip_background()).child(self.tab_bar_tabs(0..sticky_count, true, TAB_STRIP_HEIGHT, window, cx)),+ };div().flex_none().flex().flex_col().child(self.clip_to_part_corners(upper)).child(lower)}@@ -477,6 +480,24 @@ impl Workbench {.expect("editor.background has a registry default")}+ /// modernUI.contribution.ts `useConnectedEditorTabs`: `workbench.experimental.modernUIEditorTabStyle` is `connected`,+ /// else the tabs are tabs.css pills.+ pub(super) fn connected_editor_tabs(&self) -> bool {+ self.setting("workbench.experimental.modernUIEditorTabStyle") == json!("connected")+ }++ /// multiRowEditorTabsControl.ts `two-tab-bars`: `workbench.editor.pinnedTabsOnSeparateRow` with both sticky and+ /// other tabs in the group.+ fn two_tab_bars(&self) -> bool {+ let sticky_count = self.editors.sticky_count();+ sticky_count > 0 && sticky_count < self.editors.editors.len() && self.setting("workbench.editor.pinnedTabsOnSeparateRow") == json!(true)+ }++ fn pill_tab_strip_background(&self) -> Rgba {+ let editor = self.color("editor.background");+ self.theme.color("editorGroupHeader.tabsBackground").map_or(editor, |tabs| crate::theme::make_opaque(tabs, editor))+ }+/// `--modern-ui-connected-tab-border`: the header's tabs border; in high contrast the focus border of the active group.fn connected_tab_border(&self) -> Rgba {match self.theme.kind {@@ -594,16 +615,29 @@ impl Workbench {fn tab(&self, index: usize, active: bool, row: TabRow, window: &Window, cx: &mut Context<Self>) -> Div {let editor = &self.editors.editors[index];let upper = row == TabRow::Upper;+ // tabs.css: a pill's 24px content sits in the tab's transparent border-block, 4px above it, 6px in the pinned+ // tabs' own bar and 2px in the bar below it (`two-tab-bars`).+ let pill_top = (!self.connected_editor_tabs()).then(|| match row {+ TabRow::Upper => 6.,+ TabRow::Main { .. } if self.two_tab_bars() => 2.,+ TabRow::Main { .. } => 4.,+ });+ let pill = pill_top.is_some();// connectedEditorTabs.css: the upper bar's tabs are 28px high, their label and icon 2px from the top.- let content_top = if upper { 2. } else { 3.5 };+ let content_top = match (pill_top, upper) {+ (Some(top), _) => top,+ (None, true) => 2.,+ (None, false) => 3.5,+ };// Compact sticky tabs show only the icon and no actions, shrink ones cut the label.let sticky_sizing = self.sticky_tab_width(index);let compact = sticky_sizing == Some(28.);let readonly = self.readonly(&editor.document().scheme, &editor.document().path).is_some();let action_foreground = match active {true => self.foreground_or("modernEditorTab.activeForeground"),- // modernUI tabs.css: high contrast keeps `color-mix(foreground 50%, transparent)`, the others tab.inactiveForeground.- false if self.theme.kind.is_high_contrast() => crate::theme::color_mix(self.color("foreground"), 0.5, gpui::transparent_black().into()),+ // modernUI tabs.css: `color-mix(foreground 50%, transparent)`, which connected tabs outside high contrast+ // replace with tab.inactiveForeground.+ false if pill || self.theme.kind.is_high_contrast() => crate::theme::color_mix(self.color("foreground"), 0.5, gpui::transparent_black().into()),false => self.foreground_or("tab.inactiveForeground"),};// modernUI tabs.css `.tab:hover:not(.active)`: the label and the action in modernEditorTab.hoverForeground.@@ -704,6 +738,9 @@ impl Workbench {let action_bar = !self.editor_groups.drawing_inactive;let close = if action_bar { self.action_bar_item_with_tab_stop(TAB_ACTIONS, &index.to_string(), true, close, cx) } else { close };let close_focused = action_bar && self.action_bar_focus(TAB_ACTIONS, &index.to_string(), cx).is_focused(window);+ // tabs.css: a pill reserves 28px for its action; multiEditorTabsControl.ts `getFitTabWidth` keeps that width+ // when the action hides, as for connected tabs.+ let trailing = if pill { 28. } else { 30.5 };let tab = div().id(("tab", index)).relative()@@ -713,14 +750,19 @@ impl Workbench {.text_color(foreground)// GPUI lays text out before group hitboxes exist, so the label's hover color is the tab's own hover style..when(!active && decoration_color.is_none() && !orphaned, |tab| tab.hover(move |tab| tab.text_color(hover_foreground)))- .when(!active && !upper, |tab| tab.child(self.inactive_tab_hover_fill(tab_group.clone())))- .when(self.shows_tab_divider(index, active, row), |tab| tab.child(self.tab_divider().debug_selector(move || format!("tab-divider-{index}"))))+ .when(!active && !upper && !pill, |tab| tab.child(self.inactive_tab_hover_fill(tab_group.clone())))+ .when_some(pill_top, |tab, top| tab.child(self.pill_tab_fill(active, top, tab_group.clone()).debug_selector(move || format!("tab-pill-{index}"))))+ .when(self.shows_tab_divider(index, active, row), |tab| {+ // A pill's divider centers on its content box, inside the border-block.+ let divider = self.tab_divider().when_some(pill_top, |divider, top| divider.top(px(top + 4.)).mt_0());+ tab.child(divider.debug_selector(move || format!("tab-divider-{index}")))+ }).when_some(sticky_sizing, |tab, width| tab.w(px(width))).map(|tab| match (file_icon, compact) {(Some(icon), true) => tab.pl(px(5.)).child(icon.mt(px(content_top))),(None, true) => tab.px(px(4.)).child(label.flex_1().justify_center()),- (Some(icon), false) => tab.pl(px(6.)).pr(px(30.5)).child(icon.mt(px(content_top))).child(label.ml(px(6.))),- (None, false) => tab.pl(px(8.)).pr(px(30.5)).child(label),+ (Some(icon), false) => tab.pl(px(6.)).pr(px(trailing)).child(icon.mt(px(content_top))).child(label.ml(px(6.))),+ (None, false) => tab.pl(px(8.)).pr(px(trailing)).child(label),}).children(lock).children(badge)@@ -751,10 +793,15 @@ impl Workbench {// connectedEditorTabs.css: an inactive tab's close action is `opacity: 0` until the tab is hovered, still a tab stop..group(tab_group.clone()).when(!compact, |tab| {- let close_top = if upper { 4. } else { 5.5 };- tab.child(div().absolute().top(px(close_top)).right(px(6.5)).when(!(active || dirty || sticky || close_focused), |close| close.opacity(0.).group_hover(tab_group, |close| close.opacity(1.))).child(close))+ // tabs.css: a pill's `.tab-actions` is 24px wide, 2px from the tab's end, inside its border-block.+ let (close_top, close_right) = match (pill_top, upper) {+ (Some(top), _) => (top + 2., 4.),+ (None, true) => (4., 6.5),+ (None, false) => (5.5, 6.5),+ };+ tab.child(div().absolute().top(px(close_top)).right(px(close_right)).when(!(active || dirty || sticky || close_focused), |close| close.opacity(0.).group_hover(tab_group, |close| close.opacity(1.))).child(close))});- if !active {+ if !active || pill {return div().h_full().flex_none().child(tab);}// connectedEditorTabs.css: an active tab in the upper bar is not connected to the editor, only a 24px fill inset 2px.@@ -817,9 +864,36 @@ impl Workbench {div().absolute().left(px(2.)).right(px(2.)).top_0().bottom(px(-1.)).rounded(px(4.)).group_hover(tab_group, move |fill| fill.bg(background))}+ /// modernUI tabs.css `.tab-fill`: a 24px pill inset 2px at the sides, `top` below the tab's top, in the+ /// modernEditorTab colors; high contrast strokes it instead, dashed while an inactive tab is hovered.+ fn pill_tab_fill(&self, active: bool, top: f32, tab_group: gpui::SharedString) -> Div {+ let fill = div().absolute().left(px(2.)).right(px(2.)).top(px(top)).h(px(24.)).rounded(px(4.));+ if self.theme.kind.is_high_contrast() {+ let contrast = self.color("contrastActiveBorder");+ return match active {+ true => fill.border_1().border_color(contrast),+ false => fill.border_1().border_color(self.color("tab.border")).group_hover(tab_group, move |fill| fill.border_dashed().border_color(contrast)),+ };+ }+ let (rest, hover) = match active {+ true => ("modernEditorTab.activeBackground", "modernEditorTab.activeHoverBackground"),+ false => ("modernEditorTab.inactiveBackground", "modernEditorTab.hoverBackground"),+ };+ let hover = self.color(hover);+ fill.bg(self.color(rest)).group_hover(tab_group, move |fill| fill.bg(hover))+ }+/// connectedEditorTabs.css `.tab:not(.active) + .tab:not(.active) > .tab-divider`: 1x16px of tab.divider at the- /// tab's start, vertically centered; high contrast hides it in the upper bar.+ /// tab's start, vertically centered; high contrast hides it in the upper bar. Pills have it before every tab but+ /// the first, none in high contrast (tabs.css).fn shows_tab_divider(&self, index: usize, active: bool, row: TabRow) -> bool {+ if !self.connected_editor_tabs() {+ let first = match row {+ TabRow::Main { first, .. } => first,+ TabRow::Upper => index == 0,+ };+ return !first && !self.theme.kind.is_high_contrast();+ }let first = match row {TabRow::Main { first, .. } => first,TabRow::Upper if self.theme.kind.is_high_contrast() => return false,diff --git a/native/crates/app/src/workbench/editor_view/tab_scroll.rs b/native/crates/app/src/workbench/editor_view/tab_scroll.rsindex 26f9ef2c165..a662ddb7870 100644--- a/native/crates/app/src/workbench/editor_view/tab_scroll.rs+++ b/native/crates/app/src/workbench/editor_view/tab_scroll.rs@@ -129,7 +129,7 @@ impl Workbench {.pt(px(1.)).h(px(height + 1.))// connectedEditorTabs.css `.connected-tab-last`: the last tab keeps its shoulder and stroke after it.- .when(!upper, |tabs| tabs.pr(px(CONNECTED_TAB_RADIUS + 1.)))+ .when(!upper && self.connected_editor_tabs(), |tabs| tabs.pr(px(CONNECTED_TAB_RADIUS + 1.))).flex().overflow_x_scroll().track_scroll(&scroll.handle)diff --git a/port/fixtures/ui-pair/bugs/pill-tabs.json b/port/fixtures/ui-pair/bugs/pill-tabs.jsonnew file mode 100644index 00000000000..39f57f59c22--- /dev/null+++ b/port/fixtures/ui-pair/bugs/pill-tabs.json@@ -0,0 +1,26 @@+[+ { "wait": 3000 },+ { "hover": [600, 400] },+ { "hotkey": ["cmd", "p"], "foreground": true },+ { "wait": 800 },+ { "type": "main.ts", "foreground": true },+ { "wait": 1000 },+ { "key": "return", "foreground": true },+ { "wait": 800 },+ { "hotkey": ["cmd", "p"], "foreground": true },+ { "wait": 800 },+ { "type": "util.ts", "foreground": true },+ { "wait": 1000 },+ { "key": "return", "foreground": true },+ { "wait": 800 },+ { "hotkey": ["cmd", "p"], "foreground": true },+ { "wait": 800 },+ { "type": "guide.md", "foreground": true },+ { "wait": 1000 },+ { "key": "return", "foreground": true },+ { "wait": 1500 },+ { "shot": "tabs" },+ { "hover": [330, 56] },+ { "wait": 800 },+ { "shot": "tab-hover" }+]diff --git a/port/ledger.md b/port/ledger.mdindex ed1552d1f1b..59c9bc361b7 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -606,7 +606,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/mediaPreview | workbench contribution | M17 | verified | | workbench/media_preview.rs, media_preview/codecs.rs: cargo test -p app media_preview media_preview::codecs answers_the_player_page_with_the_file_s_codecs lists_the_editor_types opens_a_startup_image previews_read_git_resources_and_show_git_lfs_pointers_as_a_message an_image_previewed_in_another_group_gets_a_preview_in_the_active_one; `FIXTURE=media-preview-tests port/tools/webview-check` 6/6; ui-pair image, video, audio, editor-type-reopen.json (port/results/webviews.md), media-preview-focus.json. Not done: Copy image, legacy `media-preview` editor migration || workbench/contrib/mergeEditor | workbench contribution | M14 | verified | | merge_editor.rs model (mapping, conflict states, accept/combine) and workbench/editor_view/merge_editor_view.rs (input 1/2, result, base view, layouts, gutter checkboxes behind `mergeEditor.showCheckboxes`, base-to-result diff backgrounds, "Comparing with" in base, the result's breadcrumbs, git's Complete Merge in the result's floating menu, `_open.mergeEditor`, dev commands, the inputs as read-only code editors of the group, Toggle Between Inputs, the active range in the last focused input or the result, scroll synchronization): cargo test -p app merge; the result title's `mergeEditor/result/title` toolbar (Reset sorted among the contributed `primary` items, the other groups behind "..."): ui-pair menus/merge-result-title.json, `FOLDER` a repository mid-merge with a conflicted `a.txt`, `FILE=a.txt`, `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus`; verified: cargo test -p app open_merge_editor_resets_the_conflict_and_accepts_incoming ("..." active while its menu shows, cursor Ln 1, Col 1, no encoding entry), ui-pair menus/merge-result-title.json with FOLDER a repository mid-merge: shots `merge` and `more` match the reference (counter width, input titles with "·" at the same height, tab decoration, "Text Editor" switch, status bar) || workbench/contrib/meteredConnection | workbench contribution | M19 | verified | | the metered warning status entry and Configure Metered Connection (workbench/power.rs); port/tools/shell-check (port/fixtures/extensions/shell-tests, 6/6); cargo test -p app metered_connection |-| workbench/contrib/modernUI | workbench contribution | M11 | verified | | the modern layout only: the classic layout (`workbench.experimental.modernUI: false`) is removed by Artur's decision (port/notes.md Modern UI); `window.density.layout` compact and the Manage menu's Layout Density (cargo test -p app -- compact_density layout_density; ui-pair m11/layout-density.json and m11/status-backgrounds.json in both densities with SETTINGS `{"window.density.layout": "compact"}`, port/results/layout-density.md); the 1.147.0 modernUI CSS audit in port/notes.md Modern UI |+| workbench/contrib/modernUI | workbench contribution | M11 | verified | | the pill editor tab style, on separate pinned rows too (cargo test -p app -- the_pill_tab_style_draws_floating_pills pills_on_separate_rows_keep_a_4px_gap color_mix_matches_the_reference_tab_hover_fill; ui-pair bugs/pill-tabs.json with SETTINGS `{"workbench.experimental.modernUIEditorTabStyle": "pill"}`); the modern layout only: the classic layout (`workbench.experimental.modernUI: false`) is removed by Artur's decision (port/notes.md Modern UI); `window.density.layout` compact and the Manage menu's Layout Density (cargo test -p app -- compact_density layout_density; ui-pair m11/layout-density.json and m11/status-backgrounds.json in both densities with SETTINGS `{"window.density.layout": "compact"}`, port/results/layout-density.md); the 1.147.0 modernUI CSS audit in port/notes.md Modern UI || workbench/contrib/multiDiffEditor | workbench contribution | M14 | verified | | multi_diff_editor.rs, workbench/editor_view/multi_diff_editor_view.rs, workbench/code_editors.rs: cargo test -p app multi_diff unchanged_bars_drag the_content_menu_floats_over_the_diffs a_file_side_is_a_code_editor every_drawn_file_side; ui-pair port/fixtures/ui-pair/menus/multi-diff-content.json with `FILE=notes.txt`, `steps-multi-diff-edit.json` (matches but for the reference's TypeScript diagnostics; port/notes.md Comments in diff editors); verified: cargo test -p app the_content_menu_floats_over_the_diffs, ui-pair menus/multi-diff-content.json: the toolbar's rows match the reference's || workbench/contrib/notebook | workbench contribution | M17 | verified | | notebook.rs, notebook/kernels.rs, notebook/layout.rs, notebook/outline.rs, workbench/notebooks.rs, workbench/notebook_editor.rs, workbench/notebook_editor/outputs.rs, cell_actions.rs, folding.rs, dnd.rs, kernel_picker.rs, notebook_variables.rs (port/notes.md milestone 17): cargo test -p app -- notebook kernel renderer backup interactive repl outline quick_input explorer list_scroll walkthrough markdown_editor debug view menus (872/0), incl. the_cell_execute_menu, kernel_source_actions_run_from_the_kernel_picker, the_notebook_variables_view_lists_the_kernels_variables; cargo test -p app markdown_editor_files_offer notebook::tests::stream_compression a_dirty_notebook_backs_up the_cell_language_picker the_output_toolbar_menu renderers a_notebook_editor_comes_back the_customize_notebook_submenu the_cell_toolbar markdown_headers_fold headings_fold split_points the_toolbar_position a_cell_dragged_by_its_left_column_moves_or_copies_to_the_drop_place markdown_headers_fold_their_sections every_selected_range_moves_to_the_drop_place the_outline_header_collapses_and_expands_the_notebook_s_headers; api-tests `MOCHA_GREP="Notebook|ipynb|Interactive Window|Ensure tabs getter"` 41/10/0 three runs in a row (10 pending are upstream skips); ui-pair m17 notebook-open, -keys-outline, -output-toolbar, -kernel-picker, -restore, -cell-click, -scroll, -toolbars, -find (within 1 device px); ui-pair m17 notebook-cell-execute with `SETTINGS={"notebook.consolidatedRunButton":true}` (run button, chevron and menu items match). Differences left are reference quirks not copied (port/notes.md session m17d) || workbench/contrib/onboarding | workbench contribution | M19 | removed | | the only registered tours are the Agents window ones (src/vs/sessions/contrib/onboardingTours): no AI by decision (port/notes.md) |