Visual Studio Code, rebuilt in Rust
Rust
fix(workbench): draw scrollbars on the editor widgets and overlays
rokarturc98fcecb07d4
diff --git a/native/crates/app/src/workbench/action_widget.rs b/native/crates/app/src/workbench/action_widget.rsindex 8c73b9152a6..8a26999033e 100644--- a/native/crates/app/src/workbench/action_widget.rs+++ b/native/crates/app/src/workbench/action_widget.rs@@ -311,7 +311,7 @@ impl Workbench {for row in 0..shown.list.visible.len() {rows.push(self.action_widget_row(shown, row, cx));}- let list = div().id("action-widget-list").h(px(list_height)).w(px(list_width)).overflow_y_scroll().track_scroll(&self.action_widget.scroll).children(rows);+ let list = self.scrollable("action-widget-list", Some(&self.action_widget.scroll), div().id("action-widget-list").children(rows), cx).h(px(list_height)).w(px(list_width));let bar = (!shown.bar.is_empty()).then(|| {let link = self.color("textLink.activeForeground");div()diff --git a/native/crates/app/src/workbench/breadcrumbs/picker.rs b/native/crates/app/src/workbench/breadcrumbs/picker.rsindex 938052cbb1c..d22adbba6ea 100644--- a/native/crates/app/src/workbench/breadcrumbs/picker.rs+++ b/native/crates/app/src/workbench/breadcrumbs/picker.rs@@ -458,7 +458,7 @@ impl Workbench {// --vscode-shadow-lg, its 12px blur as a sigma of 6..shadow(vec![gpui::BoxShadow { color: gpui::rgba(0x00000024).into(), offset: point(px(0.), px(0.)), blur_radius: px(6.), spread_radius: px(0.), inset: false }]).text_color(foreground)- .child(div().id("breadcrumbs-picker-rows").h(px(tree_height)).overflow_y_scroll().track_scroll(&picker.scroll).children(row_elements));+ .child(self.scrollable("breadcrumbs-picker-rows", Some(&picker.scroll), div().id("breadcrumbs-picker-rows").children(row_elements), cx).h(px(tree_height)));let widget = div().occlude().flex().flex_col().child(arrow).child(tree);Some(deferred(anchored().position(point(px(x), px(top - ARROW_SIZE))).child(widget)).with_priority(1).into_any_element())}diff --git a/native/crates/app/src/workbench/breadcrumbs/tests.rs b/native/crates/app/src/workbench/breadcrumbs/tests.rsindex 81615e2d397..4b9a4fd8094 100644--- a/native/crates/app/src/workbench/breadcrumbs/tests.rs+++ b/native/crates/app/src/workbench/breadcrumbs/tests.rs@@ -86,6 +86,7 @@ fn focus_and_select_shows_the_outline_picker(cx: &mut TestAppContext) {let (picker, active, _) = state(cx);assert_eq!(picker, Some((2, ids(&["A", "A/run", "A/stop", "B"]), Some(ids(&["A/run"])[0].clone()), true)), "run's picker, A expanded");assert!(active, "a showing picker keeps breadcrumbsActive");+ assert!(workbench.read_with(cx, |workbench, _| workbench.scrollable_drawn("breadcrumbs-picker-rows")), "breadcrumbs-picker-rows sits in a ScrollableElement");let tree = cx.debug_bounds("breadcrumbs-picker-tree").unwrap();let (scale, class) = workbench.update_in(cx, |workbench, window, _| (window.scale_factor(), workbench.color("symbolIcon.classForeground")));let colors: Vec<gpui::Hsla> = cx.read_rendered_frame(|scene, _| scene.monochrome_sprites.iter().filter(|sprite| tree.contains(&sprite.bounds.center().map(|v| gpui::px(v.0 / scale)))).map(|sprite| sprite.color).collect());diff --git a/native/crates/app/src/workbench/code_actions/tests.rs b/native/crates/app/src/workbench/code_actions/tests.rsindex 37a6ff1af6a..f8f8aded4a8 100644--- a/native/crates/app/src/workbench/code_actions/tests.rs+++ b/native/crates/app/src/workbench/code_actions/tests.rs@@ -187,6 +187,7 @@ fn the_action_widget_takes_the_keys_and_hides_on_blur(cx: &mut TestAppContext) {});cx.run_until_parked();answer(&receiver, json!([edit_action("Add a", "a"), edit_action("Remove b", "b")]), cx);+ assert!(workbench.read_with(cx, |workbench, _| workbench.scrollable_drawn("action-widget-list")), "action-widget-list sits in a ScrollableElement");cx.simulate_keystrokes("r");workbench.update_in(cx, |workbench, window, _| {assert!(workbench.action_widget_visible());diff --git a/native/crates/app/src/workbench/content_hover/tests.rs b/native/crates/app/src/workbench/content_hover/tests.rsindex 95cc733dbe7..08046a813a5 100644--- a/native/crates/app/src/workbench/content_hover/tests.rs+++ b/native/crates/app/src/workbench/content_hover/tests.rs@@ -492,6 +492,7 @@ fn the_keys_scroll_a_focused_hover(cx: &mut TestAppContext) {(f32::from(scroll.bounds().size.height), f32::from(scroll.max_offset().y))});assert!(max > 2. * height, "the hover overflows: {max} past {height}");+ assert!(workbench.read_with(cx, |workbench, _| workbench.scrollable_drawn("content-hover-contents")), "content-hover-contents sits in a ScrollableElement");let keybindings = dir.join("User/keybindings.json");workbench.update(cx, |workbench, _| workbench.load_keybindings(crate::keybindings::default_keybindings(&[]), keybindings));let mut tops = Vec::new();diff --git a/native/crates/app/src/workbench/content_hover_view.rs b/native/crates/app/src/workbench/content_hover_view.rsindex 8e6cb55acff..a754d4d1d45 100644--- a/native/crates/app/src/workbench/content_hover_view.rs+++ b/native/crates/app/src/workbench/content_hover_view.rs@@ -244,7 +244,7 @@ impl Workbench {// hoverContribution.ts: `.hover-row:not(:first-child):not(:empty)` has a top border at half alpha.column = column.child(row.when(index > 0, |row| row.border_t_1().border_color(separator)));}- let contents = div().id("content-hover-contents").overflow_y_scroll().track_scroll(&self.content_hover.scroll).child(column);+ let contents = self.scrollable("content-hover-contents", Some(&self.content_hover.scroll), div().id("content-hover-contents").child(column), cx);match height {Some(height) => contents.h(px(height)),None => contents.max_h(px(max_height)),diff --git a/native/crates/app/src/workbench/debug_hover.rs b/native/crates/app/src/workbench/debug_hover.rsindex 949f293d744..9124aed67f7 100644--- a/native/crates/app/src/workbench/debug_hover.rs+++ b/native/crates/app/src/workbench/debug_hover.rs@@ -537,7 +537,12 @@ impl Workbench {let rows = div().id("debug-hover-tree").debug_selector(|| "debug-hover-tree".into())- .track_scroll(&self.debug_hover.tree_scroll).flex().flex_col().h(px(height)).pt(px(padding)).overflow_y_scroll().cursor_pointer().children(rows);+ .flex()+ .flex_col()+ .pt(px(padding))+ .cursor_pointer()+ .children(rows);+ let rows = self.scrollable("debug-hover-tree", Some(&self.debug_hover.tree_scroll), rows, cx).h(px(height));let find = find_open.then(|| {let look = TreeFindLook { input: InputId::DebugHoverFind, message: self.debug_hover_find_message(), filter_mode: self.debug_hover_find_filter_mode(), fuzzy: self.debug_hover_find_fuzzy(), input_width: FIND_INPUT_WIDTH };self.tree_find_widget(look, |workbench, window, cx| workbench.close_debug_hover_find(window, cx), window, cx)diff --git a/native/crates/app/src/workbench/debug_hover/tests.rs b/native/crates/app/src/workbench/debug_hover/tests.rsindex 48ac9413ae3..09858d3f5fb 100644--- a/native/crates/app/src/workbench/debug_hover/tests.rs+++ b/native/crates/app/src/workbench/debug_hover/tests.rs@@ -336,6 +336,7 @@ fn a_click_on_a_hover_row_focuses_the_tree(cx: &mut TestAppContext) {let children = json!({ "variables": [{ "name": "alpha", "value": "Object", "variablesReference": 8 }, { "name": "beta", "value": "2" }, { "name": "gamma", "value": "3" }] });respond(&workbench, &host, &[("variables", children)], cx);let tree = cx.debug_bounds("debug-hover-tree").expect("the hover shows its tree");+ assert!(workbench.read_with(cx, |workbench, _| workbench.scrollable_drawn("debug-hover-tree")), "debug-hover-tree sits in a ScrollableElement");let state = |cx: &mut VisualTestContext| {workbench.update_in(cx, |workbench, window, _| (workbench.debug_hover_focus.is_focused(window), workbench.debug_hover.focused.clone(), workbench.debug_hover.selected.clone(), workbench.debug_hover.expanded.contains("hover/alpha")))};diff --git a/native/crates/app/src/workbench/icon_select_box.rs b/native/crates/app/src/workbench/icon_select_box.rsindex 7ef825d97c6..cb7388e7d8e 100644--- a/native/crates/app/src/workbench/icon_select_box.rs+++ b/native/crates/app/src/workbench/icon_select_box.rs@@ -431,12 +431,12 @@ impl Workbench {let focused_background = self.color("list.inactiveSelectionBackground");let focused_foreground = self.theme.color("list.inactiveSelectionForeground").unwrap_or(foreground);let hover_background = self.color("toolbar.hoverBackground");- let mut icons = div().id("icon-select-icons").h(px(height)).pl(px(grid.padding_left)).flex().flex_wrap().content_start().overflow_y_scroll().track_scroll(&picker.scroll);+ let mut icons = div().id("icon-select-icons").pl(px(grid.padding_left)).flex().flex_wrap().content_start();if let Some(focus) = &grid_focus {icons = icons.track_focus(focus);}if picker.rendered.is_empty() {- return icons.child("No results");+ icons = icons.child("No results");}for (index, &icon) in picker.rendered.iter().enumerate() {let focused = picker.focused == Some(index);@@ -453,7 +453,7 @@ impl Workbench {.on_click(cx.listener(move |workbench, _, window, cx| workbench.select_icon(Some(icon), window, cx)));icons = icons.child(cell);}- icons+ self.scrollable("icon-select-icons", Some(&picker.scroll), icons, cx).h(px(height))}/// The Icon row of a profile that is not the default one: the icon that opens the picker, and its description.diff --git a/native/crates/app/src/workbench/list_scroll.rs b/native/crates/app/src/workbench/list_scroll.rsindex 06788ff4d5a..c499bd1516e 100644--- a/native/crates/app/src/workbench/list_scroll.rs+++ b/native/crates/app/src/workbench/list_scroll.rs@@ -53,6 +53,10 @@ pub enum ListId {MarkerMessage,/// The parameter hints widget's signature and docs (parameterHintsWidget.ts `DomScrollableElement`).ParameterHints,+ /// The quick input's list (quickInputList.ts).+ QuickInput,+ /// The suggest widget's list (suggestWidget.ts `this._list`).+ Suggest,/// Any other list, tree or widget in a ScrollableElement, by its element id (`Workbench::scrollable`).Scrollable(&'static str),/// A page in a DomScrollableElement, by its element id (`Workbench::dom_scrollable`).@@ -62,7 +66,8 @@ pub enum ListId {}/// The GPUI state a list scrolls with: a scrolled div or uniform list, a `list` of measured rows, or the scroll top-/// and its maximum, as they are now, of a list that places its rows itself (a notebook, a multi diff editor).+/// and its maximum, as they are now, of a list that places its rows itself (a notebook, a multi diff editor, the+/// suggest widget).#[derive(Clone)]pub enum ListScroller {Div(ScrollHandle),@@ -157,6 +162,8 @@ impl Workbench {ListId::CommentThread { controller, thread } => ListScroller::Div(self.floating_comments_scroll(controller, thread)),ListId::MarkerMessage => ListScroller::Div(self.marker_navigation.scroll.clone()),ListId::ParameterHints => ListScroller::Div(self.parameter_hints.body_scroll.clone()),+ ListId::QuickInput => ListScroller::List(self.quick_inputs.list.clone()),+ ListId::Suggest => self.suggest_list_scroller(),ListId::Scrollable(id) | ListId::Page(id) => ListScroller::Div(self.scrollable_handle(id)),ListId::MultiDiff(model) => self.multi_diff_list_scroller(model),}@@ -201,6 +208,11 @@ impl Workbench {.child(self.list_scroll_layer(list, cx))}+ #[cfg(test)]+ pub(super) fn scrollable_drawn(&self, id: &str) -> bool {+ self.list_scrolls.handles.borrow().contains_key(id)+ }+fn scrollable_handle(&self, id: &'static str) -> ScrollHandle {self.list_scrolls.handles.borrow_mut().entry(id).or_default().clone()}@@ -218,7 +230,8 @@ impl Workbench {(ListScroller::List(state), _) => state.set_offset_from_scrollbar(point(px(0.), px(-position.y))),(ListScroller::Placed { .. }, ListId::Notebook(tab)) => self.set_notebook_scroll_top(tab, position.y),(ListScroller::Placed { .. }, ListId::MultiDiff(model)) => self.editors.multi_diffs.get_mut(&model).expect("scrolled while open").scroll_top = position.y,- (ListScroller::Placed { .. }, _) => unreachable!("only notebooks and multi diff editors place their rows"),+ (ListScroller::Placed { .. }, ListId::Suggest) => self.set_suggest_scroll_top(position.y),+ (ListScroller::Placed { .. }, _) => unreachable!("only notebooks, multi diff editors and the suggest widget place their rows"),}true}@@ -452,9 +465,9 @@ impl Workbench {// gotoErrorWidget.ts and compressedVirtualizedScrollView.ts create theirs with `useShadows: false`.let shadow = (position.y > 0. && !matches!(list, ListId::MarkerMessage | ListId::MultiDiff(_))).then(|| self.scroll_shadow());let now = Instant::now();- let (mut opacity, mut shown, animating, drag) = match self.list_scrolls.lists.get(&list) {- Some(scroll) => (scroll.bars.opacity(now), scroll.bars.shown, scroll.bars.in_transition(now), scroll.drag),- None => (0., false, false, None),+ let (mut opacity, mut shown, animating, drag, mouse_over) = match self.list_scrolls.lists.get(&list) {+ Some(scroll) => (scroll.bars.opacity(now), scroll.bars.shown, scroll.bars.in_transition(now), scroll.drag, scroll.bars.mouse_over),+ None => (0., false, false, None, false),};// multiEditorTabsControl.ts `getTabsScrollbarVisibility`: `visible` and `hidden` override the fade.match self.setting("workbench.editor.titleScrollbarVisibility").as_str().filter(|_| tabs) {@@ -532,7 +545,6 @@ impl Workbench {});let hovered_slider = move |window: &Window| sliders.iter().any(|slider| slider.contains(&window.mouse_position()));let painted_hover = hovered_slider(window);- let painted_over = list_hitbox.is_hovered(window);let workbench_moved = workbench.clone();window.on_mouse_event(move |event: &MouseMoveEvent, phase, window, cx| {if phase != DispatchPhase::Bubble {@@ -544,7 +556,8 @@ impl Workbench {return;}let over = list_hitbox.is_hovered(window) || bounds.contains(&event.position);- if over != painted_over {+ // Against the stored state: a list that opens under the pointer sees its first move as a mouseover.+ if over != mouse_over {workbench_moved.update(cx, |workbench, cx| workbench.list_mouse_over(list, over, cx));} else if hovered_slider(window) != painted_hover {window.refresh();diff --git a/native/crates/app/src/workbench/list_scroll/tests.rs b/native/crates/app/src/workbench/list_scroll/tests.rsindex 41c98536af1..84596732380 100644--- a/native/crates/app/src/workbench/list_scroll/tests.rs+++ b/native/crates/app/src/workbench/list_scroll/tests.rs@@ -214,7 +214,7 @@ fn the_panels_draw_their_bodies_in_a_scrollable(cx: &mut TestAppContext) {];for (command, id) in views {run(&workbench, command, cx);- let drawn = workbench.read_with(cx, |workbench, _| workbench.list_scrolls.handles.borrow().contains_key(id));+ let drawn = workbench.read_with(cx, |workbench, _| workbench.scrollable_drawn(id));assert!(drawn, "{command} draws {id} in a scrollable");}std::fs::remove_dir_all(dir).unwrap();diff --git a/native/crates/app/src/workbench/quick_input_view.rs b/native/crates/app/src/workbench/quick_input_view.rsindex 3d97740702c..3c26e1f65d0 100644--- a/native/crates/app/src/workbench/quick_input_view.rs+++ b/native/crates/app/src/workbench/quick_input_view.rs@@ -46,7 +46,7 @@ pub struct QuickInputs {/// The element focused before the widget showed, focused again when it hides (`previousFocusElement`).previous_focus: Option<FocusHandle>,focus_out: Option<Subscription>,- list: ListState,+ pub(super) list: ListState,/// The input, its row order and `list_updates` the list was last laid out for, and the row it last revealed.listed: (Option<i64>, Vec<usize>, u64),revealed: Option<usize>,@@ -834,7 +834,7 @@ impl Workbench {}let cover = padding_empty.then(|| div().absolute().left_0().right_0().bottom_0().h(px(7.)).bg(self.color("quickInput.background")));// .monaco-scrollable-element: 6px on the sides.- let rows = div().relative().h(px(height + 7.)).px(px(6.)).child(rows).children(cover);+ let rows = div().relative().h(px(height + 7.)).px(px(6.)).child(rows).children(cover).child(self.list_scroll_layer(super::list_scroll::ListId::QuickInput, cx));// quickInput.css `.quick-input-list`: line-height 22px.div().line_height(px(22.)).when(input.hide_input, |list| list.mt(px(4.)).pb(px(4.))).child(rows)}diff --git a/native/crates/app/src/workbench/quick_input_view/tests.rs b/native/crates/app/src/workbench/quick_input_view/tests.rsindex b4a5a726d88..5a3bde71a63 100644--- a/native/crates/app/src/workbench/quick_input_view/tests.rs+++ b/native/crates/app/src/workbench/quick_input_view/tests.rs@@ -211,6 +211,15 @@ fn keep_scroll_position_keeps_the_list_where_it_is(cx: &mut TestAppContext) {assert_eq!(scroll_top(cx), bottom);update(cx, false, &|input| input.set_items(items.clone()));assert_eq!(scroll_top(cx), 0);++ // quickInputList.ts's list sits in a ScrollableElement: the pointer shows its scrollbar, the wheel scrolls it.+ use crate::workbench::list_scroll::ListId;+ let bounds = workbench.read_with(cx, |workbench, _| workbench.list_scroller(ListId::QuickInput).bounds());+ cx.simulate_mouse_move(bounds.center(), None, Modifiers::none());+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.list_hover(ListId::QuickInput).map(|(over, _)| over)), Some(true));+ cx.simulate_event(gpui::ScrollWheelEvent { position: bounds.center(), delta: gpui::ScrollDelta::Lines(point(0., -1.)), ..Default::default() });+ cx.run_until_parked();+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.list_scroller(ListId::QuickInput).position().y), 50.);}/// quickinput.test.ts "close motion requires modern UI with motion enabled", "finishes closing when the closediff --git a/native/crates/app/src/workbench/suggest_controller/tests.rs b/native/crates/app/src/workbench/suggest_controller/tests.rsindex c66c3f8d607..0d1b3e23861 100644--- a/native/crates/app/src/workbench/suggest_controller/tests.rs+++ b/native/crates/app/src/workbench/suggest_controller/tests.rs@@ -460,3 +460,34 @@ fn resolve_additional_text_edits_async_when_needed_conflict(cx: &mut TestAppContassert_eq!(text(&workbench, cx), "TYPINGhello\nhallohello");assert_eq!(head(&workbench, cx), Position::new(0, 6));}++/// suggestWidget.ts `this._list` and suggestWidgetDetails.ts `_body` sit in ScrollableElements: the pointer over+/// them shows their scrollbars and the wheel scrolls them.+#[gpui::test]+fn the_list_and_the_details_scroll_with_scrollbars(cx: &mut TestAppContext) {+ use crate::workbench::list_scroll::ListId;+ use gpui::{Modifiers, ScrollDelta, ScrollWheelEvent, point, px};+ let words: Vec<String> = (0..40).map(|index| format!("word{index:02}")).collect();+ let (workbench, cx) = open(cx, &format!("{}\n", words.join(" ")));+ run(&workbench, cx, "editor.action.triggerSuggest");+ assert_eq!(shown(&workbench, cx).len(), 40);+ // A list that opens under the pointer: the first move over it is a mouseover.+ let center = workbench.read_with(cx, |workbench, _| workbench.list_scroller(ListId::Suggest).bounds().center());+ run(&workbench, cx, "hideSuggestWidget");+ cx.simulate_mouse_move(center, None, Modifiers::none());+ run(&workbench, cx, "editor.action.triggerSuggest");+ cx.simulate_mouse_move(center + point(px(1.), px(0.)), None, Modifiers::none());+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.list_hover(ListId::Suggest).map(|(over, _)| over)), Some(true));+ let long = (0..60).map(|line| format!("line {line}")).collect::<Vec<_>>().join("\n\n");+ show_details(&workbench, cx, "detail", &long);+ let wheel = |list: ListId, cx: &mut VisualTestContext| {+ let bounds = workbench.read_with(cx, |workbench, _| workbench.list_scroller(list).bounds());+ cx.simulate_mouse_move(bounds.center(), None, Modifiers::none());+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.list_hover(list).map(|(over, _)| over)), Some(true), "{list:?}");+ cx.simulate_event(ScrollWheelEvent { position: bounds.center(), delta: ScrollDelta::Lines(point(0., -1.)), ..Default::default() });+ cx.run_until_parked();+ workbench.read_with(cx, |workbench, _| workbench.list_scroller(list).position().y)+ };+ assert_eq!(wheel(ListId::Scrollable("suggest-details-body"), cx), 50.);+ assert_eq!(wheel(ListId::Suggest, cx), (50. / crate::editor::LINE_HEIGHT).round() * crate::editor::LINE_HEIGHT);+}diff --git a/native/crates/app/src/workbench/suggest_widget.rs b/native/crates/app/src/workbench/suggest_widget.rsindex ef12f6827ce..a1716ece651 100644--- a/native/crates/app/src/workbench/suggest_widget.rs+++ b/native/crates/app/src/workbench/suggest_widget.rs@@ -3,7 +3,7 @@use std::time::Duration;-use gpui::{AnyElement, BoxShadow, Context, Div, FontWeight, HighlightStyle, MouseButton, MouseDownEvent, MouseMoveEvent, MouseUpEvent, ScrollWheelEvent, SharedString, canvas, StyledText, Task, Window, deferred, div, point, prelude::*, px};+use gpui::{AnyElement, BoxShadow, Context, Div, FontWeight, HighlightStyle, MouseButton, MouseDownEvent, MouseMoveEvent, MouseUpEvent, SharedString, canvas, StyledText, Task, Window, deferred, div, point, prelude::*, px};use serde_json::{Value, json};use super::Workbench;@@ -52,6 +52,7 @@ pub(super) struct WidgetState {pub focused: Option<usize>,/// The first item in view.top: usize,+ list_bounds: std::rc::Rc<std::cell::Cell<gpui::Bounds<gpui::Pixels>>>,is_auto: bool,/// `_loadingTimeout`.loading: Option<Task<()>>,@@ -609,7 +610,7 @@ impl Workbench {.cursor_default().occlude().on_any_mouse_down(|_, _, cx| cx.stop_propagation())- .child(+ .child(self.scrollable("suggest-details-body", None, div().id("suggest-details-body").child(div().relative().flex_none()@@ -625,7 +626,7 @@ impl Workbench {div().font_family(EDITOR_FONT).opacity(0.7).mr(px(24.)).pl(px(5.)).pt(px(4.)).pb(px(if has_docs { 12. } else { 4. })).children(lines)})).children(docs),- );+ ), cx).flex_1());let bounds = gpui::Bounds { origin: point(left, top), size: gpui::size(width, height) };let mut elements = vec![details.into_any_element()];elements.extend(self.details_sashes(bounds, placed.sashes, placed.min, placed.max, cx));@@ -783,25 +784,17 @@ impl Workbench {}fn suggest_rows(&self, height: f32, with_status_bar: bool, cx: &mut Context<Self>) -> impl IntoElement {- let item_height = LINE_HEIGHT;- let visible = ((height / item_height).floor() as usize).max(1);+ let visible = ((height / LINE_HEIGHT).floor() as usize).max(1);let (top, focused) = (self.suggest.widget.top, self.suggest.widget.focused);let frozen = self.suggest_widget_frozen();let items: Vec<CompletionItem> = self.suggest_items().iter().skip(top).take(visible).cloned().collect();- let count = self.suggest_items().len();let mut list = div().id("suggest-list")+ .relative().flex().flex_col().size_full()- .on_scroll_wheel(cx.listener(move |workbench, event: &ScrollWheelEvent, window, cx| {- let delta = event.delta.pixel_delta(window.line_height()).y.to_f64() as f32;- let rows = (-delta / item_height).round() as isize;- let top = (workbench.suggest.widget.top as isize + rows).clamp(0, count.saturating_sub(visible) as isize) as usize;- workbench.suggest.widget.top = top;- cx.stop_propagation();- cx.notify();- }));+ .child(super::output_view::bounds_tracker(self.suggest.widget.list_bounds.clone()));let shown = items.len();for (offset, item) in items.into_iter().enumerate() {let index = top + offset;@@ -810,7 +803,18 @@ impl Workbench {// GPUI cannot, so the first and last rows take them; the last row keeps 4px above the status bar.list = list.child(row.rounded(px(4.)).when(offset == 0, |row| row.rounded_t(px(RADIUS))).when(offset + 1 == shown && !with_status_bar, |row| row.rounded_b(px(RADIUS))));}- list+ list.child(self.list_scroll_layer(super::list_scroll::ListId::Suggest, cx))+ }++ pub(super) fn suggest_list_scroller(&self) -> super::list_scroll::ListScroller {+ let bounds = self.suggest.widget.list_bounds.get();+ let max = self.suggest_items().len() as f32 * LINE_HEIGHT - f32::from(bounds.size.height);+ super::list_scroll::ListScroller::Placed { bounds, top: self.suggest.widget.top as f32 * LINE_HEIGHT, max }+ }++ /// shortcut: the rows move whole, where listView.ts scrolls by the pixel; draw a partial top row to upgrade.+ pub(super) fn set_suggest_scroll_top(&mut self, top: f32) {+ self.suggest.widget.top = (top / LINE_HEIGHT).round() as usize;}/// suggestWidgetRenderer.ts `renderElement`.diff --git a/native/crates/app/src/workbench/terminal_editor/tests.rs b/native/crates/app/src/workbench/terminal_editor/tests.rsindex 2ed537345e7..b11049a273f 100644--- a/native/crates/app/src/workbench/terminal_editor/tests.rs+++ b/native/crates/app/src/workbench/terminal_editor/tests.rs@@ -120,6 +120,7 @@ fn the_icon_picker_search_is_a_bare_input_box(cx: &mut TestAppContext) {});cx.run_until_parked();assert_eq!(cx.debug_bounds("icon-select-search").expect("the picker shows its search").size.height, gpui::px(25.));+ assert!(workbench.read_with(cx, |workbench, _| workbench.scrollable_drawn("icon-select-icons")), "icon-select-icons sits in a ScrollableElement");// 2 + 3 + 18.2 (line-height 1.4 at 13px) + 3 = 26.2, which Chrome snaps to 26 at 2x; a line height ceiled to// the device pixel made it 26.5 and moved the whole picker down.assert_eq!(cx.debug_bounds("quick-input-title").expect("the picker has a title").size.height, gpui::px(26.));diff --git a/native/crates/app/src/workbench/tree_guides.rs b/native/crates/app/src/workbench/tree_guides.rsindex 62be298b637..4a9d36680c2 100644--- a/native/crates/app/src/workbench/tree_guides.rs+++ b/native/crates/app/src/workbench/tree_guides.rs@@ -205,7 +205,7 @@ impl Workbench {self.search.focus_and_select(Some(row.key));window.focus(&self.search.focus.clone(), cx);}- ListId::KeybindingsTable | ListId::SettingsTree | ListId::EditorTabs { .. } | ListId::Notebook(_) | ListId::CommentThread { .. } | ListId::MarkerMessage | ListId::ParameterHints | ListId::Scrollable(_) | ListId::Page(_) | ListId::MultiDiff(_) => unreachable!("only the Explorer and Search lists are trees"),+ ListId::KeybindingsTable | ListId::SettingsTree | ListId::EditorTabs { .. } | ListId::Notebook(_) | ListId::CommentThread { .. } | ListId::MarkerMessage | ListId::ParameterHints | ListId::QuickInput | ListId::Suggest | ListId::Scrollable(_) | ListId::Page(_) | ListId::MultiDiff(_) => unreachable!("only the Explorer and Search lists are trees"),}cx.notify();}@@ -215,7 +215,7 @@ impl Workbench {ListId::Explorer => self.folder.as_ref().map(|tree| tree.rows().iter().map(|row| row.depth).collect()).unwrap_or_default(),ListId::Outline => self.notebook_outline_depths().unwrap_or_else(|| self.outline_shown_rows().into_iter().map(|(_, depth)| depth).collect()),ListId::Search => self.search.rows(&self.search_folders(), Some(&self.collapse_results())).iter().map(|row| row.depth).collect(),- ListId::KeybindingsTable | ListId::SettingsTree | ListId::EditorTabs { .. } | ListId::Notebook(_) | ListId::CommentThread { .. } | ListId::MarkerMessage | ListId::ParameterHints | ListId::Scrollable(_) | ListId::Page(_) | ListId::MultiDiff(_) => Vec::new(),+ ListId::KeybindingsTable | ListId::SettingsTree | ListId::EditorTabs { .. } | ListId::Notebook(_) | ListId::CommentThread { .. } | ListId::MarkerMessage | ListId::ParameterHints | ListId::QuickInput | ListId::Suggest | ListId::Scrollable(_) | ListId::Page(_) | ListId::MultiDiff(_) => Vec::new(),}}diff --git a/port/ledger.md b/port/ledger.mdindex 13148910e8f..e4183b64e52 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -273,7 +273,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| platform/accessibility | src/vs/platform | M19 | verified | | workbench/accessibility.rs: IAccessibilityService on the AccessKit tree (is_a11y_active, editor.accessibilitySupport, accessibilityModeEnabled), the editor text area with the paged content as runs and AXValue, the Explorer tree, aria live region; port/tools/a11y-check (AXValue line 2 at AXInsertionPointLineNumber, Explorer AXOutline and AXRows, Accessibility Help text area); cargo test -p app accessib (12); `isMotionReduced` (`workbench.reduceMotion` on/off/auto with the macOS Reduce Motion setting) gating the port's `.monaco-enable-motion` effects (table column borders always shown, find widget slide, folding icon fade, indent guide fade, quick input open/close) and the webviews' `reduceMotion`: cargo test -p app reduced_motion_shows_the_column_borders_without_hover, ui-pair problems table (port/results/problems.md) || platform/accessibilitySignal | src/vs/platform | M19 | verified | | accessibility_signals.rs: the 38 signals with their sounds, checkEnabledState, volume, getDelayMs; cargo test -p app accessib (enabled states, volume, sound files, errors announced on a new line and at each position) || platform/action | src/vs/platform | M9 | verified | | types only upstream (ICommandAction, ILocalizedString, toggle info, Categories): command_palette.rs `MenuItem` (id, title, category, precondition, source; `{ value }` titles read as `isLocalizedString`) and menus.rs `Entry::Command` (precondition, `Toggled` with its condition and title, `Alt` with its precondition): cargo test -p app menus enablement_toggled_title_and_alt_precondition; the Categories come resolved in the 1.147.0 dump (reference-commands.json); cargo test -p app command_palette menus |-| platform/actionWidget | src/vs/platform | M9 | verified | | list model (action_list.rs: filter, sections, focus, height, width): cargo test -p app action_list (19, the 19 upstream cases); the view and ActionWidgetService (workbench/action_widget.rs: the menu over the window, keyboard and mouse focus, the action bar, the click-elsewhere block) for the code action menu and the terminal quick fix menu: cargo test -p app code_actions (10), terminal_quick_fix (2); ui-pair of the code action menu with the TypeScript refactorings (port/results/language-features.md, Code actions: same) |+| platform/actionWidget | src/vs/platform | M9 | verified | | list model (action_list.rs: filter, sections, focus, height, width): cargo test -p app action_list (19, the 19 upstream cases); the view and ActionWidgetService (workbench/action_widget.rs: the menu over the window, keyboard and mouse focus, the action bar, the click-elsewhere block) for the code action menu and the terminal quick fix menu: cargo test -p app code_actions (10), terminal_quick_fix (2); ui-pair of the code action menu with the TypeScript refactorings (port/results/language-features.md, Code actions: same); scrollbars: cargo test -p app the_action_widget_takes_the_keys_and_hides_on_blur || platform/actions | src/vs/platform | M9 | verified | | menus.rs: MenuRegistry rows with group, order, when, precondition, toggled (with its title) and submenus (with their toggled), sorted as menuService.ts; cargo test -p app menus (menuService.test.ts: sorting, ties, empty and nested submenus, submenu toggle, enablement, toggled title, alt precondition; the observer and group-title cases have no counterpart: menus are computed on demand, group titles serve canvases); Alt+Enter runs the alt command (menuEntryActionViewItem.test.ts, cargo test -p app alt_enter_runs); toolbar.ts and buttonbar.ts cases come with the view toolbars of milestone 11; command_palette.rs keeps the CommandPalette menu, built from the 1.147.0 dump of `MenuRegistry` titles and CommandPalette items (port/tools/ref-commands, command_palette/reference-commands.json) || platform/agentHost | src/vs/platform | | removed | | no sign-in/AI by decision (port/notes.md); not ported || platform/agentPlugins | src/vs/platform | | removed | | no sign-in/AI by decision (port/notes.md); not ported |@@ -349,7 +349,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| platform/profiling | src/vs/platform | M19 | n/a | | V8 inspector CPU profiles of the Electron renderer (windowProfiling.ts, rendererAutoProfiler.ts) and their analysis worker, which feeds only telemetry (profilingTelemetrySpec.ts); the workbench is a native process, profiled with Instruments, and no telemetry by decision; the extension host profile commands belong to workbench/contrib/extensions || platform/progress | src/vs/platform | M11 | verified | | ProgressLocation values and the step shape, in main_thread_progress.rs; verified: ui-pair messages.json `progress` vs the reference (port/results/windows.md, milestone 11 verification) || platform/protocol | src/vs/platform | | n/a | | Electron process, IPC or DOM layer; replaced by the single-process Rust/GPUI architecture (port/notes.md) |-| platform/quickinput | src/vs/platform | M9 | verified | | quick_input_view.rs, workbench/quick_pick_pin.rs, tf_idf.rs: cargo test -p app quick_input filters tf_idf command_palette quick_pick_pin the_icon_picker_search_is_a_bare_input_box a_quick_pick_shown_over_the_icon_picker_drops_its_content the_description_follows_the_highlighted_name_s_exact_width (quickinput.test.ts model cases); api-tests quick input 11/11; ui-pair port/fixtures/ui-pair/quick-input-item-hover.json and Cmd+P `ts` |+| platform/quickinput | src/vs/platform | M9 | verified | | quick_input_view.rs, workbench/quick_pick_pin.rs, tf_idf.rs: cargo test -p app quick_input filters tf_idf command_palette quick_pick_pin the_icon_picker_search_is_a_bare_input_box a_quick_pick_shown_over_the_icon_picker_drops_its_content the_description_follows_the_highlighted_name_s_exact_width (quickinput.test.ts model cases); api-tests quick input 11/11; ui-pair port/fixtures/ui-pair/quick-input-item-hover.json and Cmd+P `ts`; scrollbars: cargo test -p app keep_scroll_position_keeps_the_list_where_it_is || platform/registry | src/vs/platform | M9 | n/a | | Registry.add/as, a string-keyed registry of registries for the JS module graph; the port passes its typed registries directly (config::registry::Registry, Commands, the menus and keybindings modules), so there is no lookup by id to port || platform/remote | src/vs/platform | | removed | | no remote or tunnels by decision (port/notes.md); one local extension host || platform/remoteTunnel | src/vs/platform | | removed | | no sign-in/AI by decision (port/notes.md); not ported |@@ -409,7 +409,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| editor/contrib/gotoError | src/vs/editor/contrib | M13 | verified | | workbench/marker_navigation.rs (gotoError.ts, markerNavigationService.ts, gotoErrorWidget.ts): cargo test -p app marker_navigation (the message's 6px scrollbar: a_long_message_scrolls_with_its_6px_scrollbar); Go menu Next/Previous Problem (menus.rs); ui-pair e.ts F8: the widget as in the reference, which has no resize sash either (port/results/language-features.md Go to Next Problem) || editor/contrib/gotoSymbol | src/vs/editor/contrib | M13 | verified | | workbench/goto_symbol.rs, references_model.rs, workbench/references_peek.rs, workbench/goto_definition_link.rs: cargo test -p app goto_symbol references_model references_peek open_to_the_side_opens_the_result_in_a_group_beside a_reference_opened_to_the_side_opens_in_a_side_group_and_keeps_the_peek the_preview_is_an_editor_of_the_reference_model_that_takes_the_focus the_preview_is_a_text_editor_of_the_host; ui-pair port/results/navigation.md || editor/contrib/gpu | src/vs/editor/contrib | | removed | | Artur: internal infrastructure or developer tool with no 1:1 counterpart in the native port |-| editor/contrib/hover | src/vs/editor/contrib | M13 | verified | | workbench/content_hover.rs, workbench/content_hover_view.rs, workbench/accessible_view.rs (hoverAccessibleViews.ts): cargo test -p app content_hover; ui-pair hover on src/main.ts. The color picker part is workbench/color_picker.rs, the inlay hint tooltip workbench/inlay_hints.rs |+| editor/contrib/hover | src/vs/editor/contrib | M13 | verified | | workbench/content_hover.rs, workbench/content_hover_view.rs, workbench/accessible_view.rs (hoverAccessibleViews.ts): cargo test -p app content_hover; ui-pair hover on src/main.ts. The color picker part is workbench/color_picker.rs, the inlay hint tooltip workbench/inlay_hints.rs; scrollbars: cargo test -p app the_keys_scroll_a_focused_hover || editor/contrib/inPlaceReplace | src/vs/editor/contrib | M8 | verified | | Replace with Previous/Next Value (Shift+Cmd+, and ., palette): number step and value sets of `navigateValueSet`, 350 ms outline in light themes; cargo test -p app editor::in_place_replace (upstream has no test); ui-pair light theme `x = true; y = 41; z = 1.5` from the palette || editor/contrib/indentation | src/vs/editor/contrib | M8 | verified | | indentation actions, trimTrailingWhitespaceCommand.ts, auto-indent on Enter, type and paste: cargo test -p app indentation editor_status editor::auto_indent (cursor.test.ts indent cases, shiftCommand.test.ts, indentation.test.ts; upstream's `test.skip` cases are `#[ignore]`, 13 ignored) || editor/contrib/inlayHints | src/vs/editor/contrib | M13 | verified | | workbench/inlay_hints.rs over editor/injected_text.rs (the 'InlayHint' debounce: inlay_hints::tests::the_delay_follows_the_providers_answer_time; off a word a hint attaches after its token's start, `_getRangeAtPosition`: inlay_hints::tests::a_hint_off_a_word_attaches_after_the_start_of_its_token; inlayHintsController.ts: cache, fixed lengths while typing, label parts, links, tooltip resolve, double click edits, `editor.inlayHints.*`, `_executeInlayHintProvider`): cargo test -p app injected_text inlay_hints; ui-pair port/fixtures/language-features/steps-color.json (port/results/inlay-hints.md); cargo test -p app a_scroll_asks_nothing_while_hints_are_off |@@ -436,7 +436,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| editor/contrib/snippet | src/vs/editor/contrib | M13 | verified | | editor/snippet_session.rs and workbench/snippet_controller.rs (snippetSession.ts, snippetController2.ts): placeholders per cursor, Tab/Shift+Tab/Escape, choices in the suggest widget, `inSnippetMode`/`hasNextTabstop`/`hasPrevTabstop`/`inSnippetChoice`, placeholder decorations: placeholder and variable transforms with every `FormatString` form (editor/snippet/transform.rs, snippetParser.test.ts cases), `SnippetSession.merge` of a snippet inserted in a running session: cargo test -p app -- snippet (92 passed with tab_completion suggest); api-tests `vscode API - editor` insertSnippet cases pass (port/results/api-tests.md M13) || editor/contrib/stickyScroll | src/vs/editor/contrib | M8 | verified | | editor/sticky_scroll.rs, workbench/sticky_outline.rs, workbench/editor_view/sticky_scroll_view.rs: cargo test -p app sticky cmd_over_a_sticky_span_with_definitions_underlines_it go_to_definition_with_location_asks_at_the_span_and_keeps_the_cursor (stickyScroll.test.ts outline cases); pixel-check folded || editor/contrib/structuralDiff | src/vs/editor/contrib | M13 | removed | | `_executeStructuralDiffProvider` serves the proposed `structuralDiff` API, which only extension/copilot enables (product.json enables it for no other extension); Copilot is removed by the no-AI decision (port/notes.md Copilot Chat) |-| editor/contrib/suggest | src/vs/editor/contrib | M13 | verified | | suggest.rs, suggest/memory.rs, suggest/word_distance.rs, workbench/suggest_controller.rs, workbench/suggest_widget.rs: cargo test -p app -- suggest resolve_additional_text_edits execute_completion_item_provider_adds_the_snippets_last (completionModel, suggestMemory, suggestController tests); cargo test -p app -- workbench::inline_completions::tests::quick_suggest the_off_shorthand a_suppressing_inline_suggestion (suggestModel.test.ts offWhenInlineCompletions); ui-pair src/main.ts (typing, Down, details, Ctrl+Space, accept) matches |+| editor/contrib/suggest | src/vs/editor/contrib | M13 | verified | | suggest.rs, suggest/memory.rs, suggest/word_distance.rs, workbench/suggest_controller.rs, workbench/suggest_widget.rs: cargo test -p app -- suggest resolve_additional_text_edits execute_completion_item_provider_adds_the_snippets_last (completionModel, suggestMemory, suggestController tests); cargo test -p app -- workbench::inline_completions::tests::quick_suggest the_off_shorthand a_suppressing_inline_suggestion (suggestModel.test.ts offWhenInlineCompletions); ui-pair src/main.ts (typing, Down, details, Ctrl+Space, accept) matches; scrollbars: cargo test -p app the_list_and_the_details_scroll_with_scrollbars || editor/contrib/symbolIcons | src/vs/editor/contrib | M13 | verified | | symbol_icons.rs: kind icons and `symbolIcon.*` colors; ui-pair suggest rows match the reference; symbol_icons.rs: `SymbolKinds.toIcon`, codicon aliases to their SVG, the `symbolIcon.*Foreground` registry defaults (cargo test -p app symbol_icons); ui-pair against the reference: port/results/navigation.md; `symbol-customcolor` draws symbol-color's glyph (0xeb5c), not add (cargo test -p app codicons::tests::every_icon_id_draws_the_svg_of_its_code_point) || editor/contrib/toggleTabFocusMode | src/vs/editor/contrib | M8 | verified | | `editor.action.toggleTabFocusMode` (Ctrl+Shift+M) in `workbench/editor_status.rs`, `editorTabMovesFocus`, the prominent "Tab Moves Focus" status item, Tab and Shift+Tab between the editor and the status bar: cargo test -p app tab_focus; ui-pair notes.txt || editor/contrib/tokenization | src/vs/editor/contrib | M7 | verified | | Developer: Force Retokenize (`editor.action.forceRetokenize`): resets the model tokens and tokenizes every line, logging the time (cargo test -p app syntax::tests::force_retokenize_tokenizes_every_line_again) |@@ -451,7 +451,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 | verified | | breadcrumbs, tab strip, text editor, groups, title menus, terminal editors, `workbench.editor.showTabs` and `editorActionsLocation` (workbench/editor_view.rs, workbench/editor_menus.rs, editor_type_picker.rs, scroll_locking.rs; port/notes.md milestone 5): cargo test -p app workbench::breadcrumbs editor::tests use_modal_all_opens_editors_in_the_modal_part use_modal_all_reveals_an_opened_editor_in_its_group_unless_an_index_is_given keys_and_typed_text_edit_the_focused_editor_and_reach_the_host editor_menus workbench_open diff_editor editor_groups editor_grid scroll_locking the_grid_and_its_editors_come_back_from_workspace_storage the_wait_marker_waits_for_the_dirty_file_to_be_saved editor_type_picker custom_editors terminal_editor icon_select_box previews_off_pins_every_opened_editor tab_labels_keep show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own 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 the_keyboard_focuses_moves_through_and_reveals_the_breadcrumbs the_modal_header_shows_the_modal_editor_title_menu a_custom_editor_on_a_debug_memory_resource_has_breadcrumbs; ui-pair m8/breadcrumbs-pickers.json, debug/memory.json, m12/editor-type.json, m12/editor-type-second-start.json, m11/editor-menus.json, m11/watermark-tips.json, m12/terminal-editor.json, m12/terminal-pickers.json, m12/terminal-tab-list-menu.json, icons/seti.json, show-tabs.json, menus/modal-editor-title.json; pixel-check file window (port/results/pixels.md milestone 4); port/results/contextmenu.md, port/results/auxiliary-windows.md, port/results/api-tests.md |+| workbench/parts/editor | workbench part | M8 | verified | | breadcrumbs, tab strip, text editor, groups, title menus, terminal editors, `workbench.editor.showTabs` and `editorActionsLocation` (workbench/editor_view.rs, workbench/editor_menus.rs, editor_type_picker.rs, scroll_locking.rs; port/notes.md milestone 5): cargo test -p app workbench::breadcrumbs editor::tests use_modal_all_opens_editors_in_the_modal_part use_modal_all_reveals_an_opened_editor_in_its_group_unless_an_index_is_given keys_and_typed_text_edit_the_focused_editor_and_reach_the_host editor_menus workbench_open diff_editor editor_groups editor_grid scroll_locking the_grid_and_its_editors_come_back_from_workspace_storage the_wait_marker_waits_for_the_dirty_file_to_be_saved editor_type_picker custom_editors terminal_editor icon_select_box previews_off_pins_every_opened_editor tab_labels_keep show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own 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 the_keyboard_focuses_moves_through_and_reveals_the_breadcrumbs the_modal_header_shows_the_modal_editor_title_menu a_custom_editor_on_a_debug_memory_resource_has_breadcrumbs; ui-pair m8/breadcrumbs-pickers.json, debug/memory.json, m12/editor-type.json, m12/editor-type-second-start.json, m11/editor-menus.json, m11/watermark-tips.json, m12/terminal-editor.json, m12/terminal-pickers.json, m12/terminal-tab-list-menu.json, icons/seti.json, show-tabs.json, menus/modal-editor-title.json; pixel-check file window (port/results/pixels.md milestone 4); port/results/contextmenu.md, port/results/auxiliary-windows.md, port/results/api-tests.md; scrollbars: cargo test -p app focus_and_select_shows_the_outline_picker || 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); scrollbars: cargo test -p app the_panels_draw_their_bodies_in_a_scrollable || 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 |@@ -572,7 +572,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/commands | workbench contribution | M9 | verified | | runCommands (commands.rs register_run_commands): cargo test -p app commands::, argument checks, spread args, order, stop at a failure; argument errors and the failure notify (cargo test -p app run_commands_argument_errors_notify) || workbench/contrib/comments | workbench contribution | M13 | verified | | workbench/comments_view.rs, workbench/comment_thread_widget.rs, comment_thread_floating.rs, workbench/comment_thread_floating_layout.rs, workbench/comment_node.rs, workbench/commenting_ranges.rs, workbench/comment_navigation.rs, workbench/editor_view/comment_glyph.rs, multi_diff_editor_view.rs: cargo test -p app comment diff floating room multi_diff comment_thread_floating two_threads_keep_their_reply_forms_open_together a_wrapped_comment_body_grows_its_zone the_reached_thread_takes_the_focus a_markdown_comment_previews_its_first_rendered_block the_filter_keeps_its_history_and_escape_clears_it the_thread_menu_replies_to_the_thread a_comment_s_code_span_draws_no_code_block_background additional_actions_show_under_the_body_and_run_with_the_thread a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor dismissing_a_new_template_keeps_it_open an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides (commentThreadFloatingWidget.test.ts); ui-pair `portComments.openDiff` (modified, original, multi, floating), steps-comment-floating.json, steps-comment-additional.json, steps-comment-escape-typed.json, steps-comment-reply-editor.json, steps-comments.json (port/results/language-features.md Comments, Comment editing and commands, Floating comment threads); cargo test -p app reactions_are_action_items_4px_apart; scrollbars: cargo test -p app the_panels_draw_their_bodies_in_a_scrollable (comments_view.rs draws comments-tree through Workbench::scrollable) || workbench/contrib/customEditor | workbench contribution | M17 | verified | | cargo test -p app custom_editors each_group_s_custom_text_editor_has_its_own_webview a_custom_text_editor_s_navigation_drives_the_outline a_custom_document_open_in_another_group_moves_to_the_active_one a_custom_document_with_multiple_editors_opens_one_more_in_the_active_group a_workspace_association_wins_over_a_user_one_of_the_same_length a_reopened_preview_keeps_its_tab_position two_default_editors_for_a_resource_ask_once_which_to_keep markdown_editor_files_offer; `FIXTURE=custom-editor-tests port/tools/webview-check` 8/8; custom editor diffs: cargo test -p app reopen_as_text_turns_an_inline_custom_diff_into_the_text_diff the_modal_header_of_a_custom_diff_offers_reopen_as_text; `FIXTURE=markdown-tests port/tools/webview-check` 8/8 (side by side, inline, reopenTextEditor); ui-pair port/fixtures/custom-editor-diff/steps.json with FILE=README.md and the `*.md` association to `vscode.markdown.preview.editor` |-| workbench/contrib/debug | workbench contribution | M16 | verified | | cargo test -p app debug launch_picker_shrinks the_debug_container_more_actions debug_service a_workbench_hover_draws_over_the_debug_hover the_tree_height_keeps_an_above_hover_off_the_hovered_line watch_expression_labels_use_the_monospace_font debug_view debug_task_runner debug_commands debug_console debug::ansi an_ended_session_stays_in_the_picker_until_cleared_or_started_again a_start_or_restart_saves_the_dirty_editors a_hit_breakpoint_enables_its_dependents debug_inline_values debug_hover alt_click_toggles_the_loaded_subtree a_click_on_a_hover_row_focuses_the_tree a_lazy_row_takes_its_value_from_the_eye_button the_find_widget_filters_the_hover_tree disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints a_right_clicked_call_stack_row_takes_the_list_focus the_debug_toolbar_and_create_configuration_menus_take_contributed_items debug_toolbar variable_menu a_stop_on_a_line_in_view_keeps_the_scroll the_debug_picker_lists_and_starts_the_launch_configurations the_first_scope_expands_only_once_the_variables_view_exists the_find_widget_filters_the_console a_variable_row_draws_its_scopes_indent_guide a_top_frame_past_column_1_injects_the_column_arrow the_call_stack_selects_the_focused_frame_only_after_a_focus_change_it_saw a_visualized_child_shows_its_tree_in_the_hover a_watch_expressions_visualized_child_draws_its_tree a_dynamic_selection_keeps_its_type_for_f5 inline_breakpoints debug_memory; ui-pair debug/memory.json (setup in port/notes.md, View Binary Data), port/fixtures/debug-node (breakpoint, F5, views, REPL, toolbar, `greeting` and `numbers` hovers), menus/view-container-title.json, debug/hover-find.json, debug/unverified-breakpoints.json, debug/call-stack-menu.json, debug/toolbar.json, debug/variables-menu.json, debug/lazy-variable.json, debug/quick-access.json; shortcuts in port/notes.md; scrollbars: cargo test -p app the_panels_draw_their_bodies_in_a_scrollable |+| workbench/contrib/debug | workbench contribution | M16 | verified | | cargo test -p app debug launch_picker_shrinks the_debug_container_more_actions debug_service a_workbench_hover_draws_over_the_debug_hover the_tree_height_keeps_an_above_hover_off_the_hovered_line watch_expression_labels_use_the_monospace_font debug_view debug_task_runner debug_commands debug_console debug::ansi an_ended_session_stays_in_the_picker_until_cleared_or_started_again a_start_or_restart_saves_the_dirty_editors a_hit_breakpoint_enables_its_dependents debug_inline_values debug_hover alt_click_toggles_the_loaded_subtree a_click_on_a_hover_row_focuses_the_tree a_lazy_row_takes_its_value_from_the_eye_button the_find_widget_filters_the_hover_tree disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints a_right_clicked_call_stack_row_takes_the_list_focus the_debug_toolbar_and_create_configuration_menus_take_contributed_items debug_toolbar variable_menu a_stop_on_a_line_in_view_keeps_the_scroll the_debug_picker_lists_and_starts_the_launch_configurations the_first_scope_expands_only_once_the_variables_view_exists the_find_widget_filters_the_console a_variable_row_draws_its_scopes_indent_guide a_top_frame_past_column_1_injects_the_column_arrow the_call_stack_selects_the_focused_frame_only_after_a_focus_change_it_saw a_visualized_child_shows_its_tree_in_the_hover a_watch_expressions_visualized_child_draws_its_tree a_dynamic_selection_keeps_its_type_for_f5 inline_breakpoints debug_memory; ui-pair debug/memory.json (setup in port/notes.md, View Binary Data), port/fixtures/debug-node (breakpoint, F5, views, REPL, toolbar, `greeting` and `numbers` hovers), menus/view-container-title.json, debug/hover-find.json, debug/unverified-breakpoints.json, debug/call-stack-menu.json, debug/toolbar.json, debug/variables-menu.json, debug/lazy-variable.json, debug/quick-access.json; shortcuts in port/notes.md; scrollbars: cargo test -p app the_panels_draw_their_bodies_in_a_scrollable debug_hover || workbench/contrib/dropOrPasteInto | workbench contribution | M13 | verified | | commands.ts `configurePreferredPasteAction`/`configurePreferredDropAction`: the widgets' menus and the Paste As pick open user settings JSON at `editor.pasteAs.preferences` or `editor.dropIntoEditor.preferences` (workbench/paste_edits.rs); the `editor.pasteAs.*` and `editor.dropIntoEditor.*` settings come from core-settings.json; ui-pair paste-menu (port/results/language-features.md) || workbench/contrib/editSessions | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/contrib/editTelemetry | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |@@ -649,7 +649,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/typeHierarchy | workbench contribution | M13 | verified | | Peek Type Hierarchy in workbench/hierarchy_peek.rs: supertypes/subtypes toggle, layout `typeHierarchyPeekLayout`, the focused message of an empty answer, `_executePrepareTypeHierarchy`, `_executeProvideSupertypes`, `_executeProvideSubtypes`; cargo test -p app hierarchy; ui-pair port/results/language-features.md (Type hierarchy) || workbench/contrib/update | workbench contribution | M19 | verified | | workbench/update.rs, workbench/update_title_bar.rs, workbench/release_notes.rs: cargo test -p app update release_notes menus:: menubar; port/tools/update-check (latest, metered, read-only) || workbench/contrib/url | workbench contribution | M12 | verified | | trusted_domains.rs (isURLDomainTrusted, globs, localhost) and workbench/url_actions.rs: workbench.action.url.openUrl, workbench.action.manageTrustedDomain (trustedDomains:/Trusted Domains.jsonc editor, saved to http.linkProtectionTrustedDomains), link prompt "Do you want Code - OSS to open the external website?" with Copy and Configure Trusted Domains; cargo test -p app -- trusted_domains:: url_actions; verified at port-m12b-verify: cargo test -p app trusted_domains 10/10, url_actions 2/2; trustedDomainsValidator `fromWorkspace` (editor links and webview links ask for workspace trust before a command link, skip the domain prompt in a trusted workspace unless `workbench.trustedDomains.promptInTrustedWorkspace`): cargo test -p app -- a_workspace_link_follows_workspace_trust an_editor_link_opens_without_the_domain_prompt a_webview_command_link_asks_for_workspace_trust |-| workbench/contrib/userDataProfile | workbench contribution | M10 | verified | | workbench/user_data_profile.rs, workbench/profiles_editor_view.rs, workbench/icon_select_box.rs: cargo test -p app icon_select_box profiles_editor_view preview_opens_a_window_on_a_transient_profile_that_goes_with_it; ui-pair Profiles editor and new profile form (port/results/profiles.md) |+| workbench/contrib/userDataProfile | workbench contribution | M10 | verified | | workbench/user_data_profile.rs, workbench/profiles_editor_view.rs, workbench/icon_select_box.rs: cargo test -p app icon_select_box profiles_editor_view preview_opens_a_window_on_a_transient_profile_that_goes_with_it; ui-pair Profiles editor and new profile form (port/results/profiles.md); scrollbars: cargo test -p app the_icon_picker_search_is_a_bare_input_box || workbench/contrib/userDataSync | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/contrib/webview | workbench contribution | M17 | verified | | webview.rs, webview/macos.rs: cargo test -p app a_webview_right_click_shows_the_webview_context_menu maps_resource_urls_to_resources_inside_the_roots webview_resource_reads_answer_with_the_file_service_bytes reads_resource_roots_and_stable_origins; `FIXTURE=webview-tests port/tools/webview-check` 10/10; api-tests `MOCHA_GREP="vscode API - webview"` 1 passing; ui-pair markdown-preview.json find (port/results/webviews.md), `webview-devtools.json` (a Web Inspector window per webview, where upstream docks Chromium devtools); ui-pair m17/webview-context.json with port/fixtures/extensions/webview-context-pair: `webview/context` item, Cut, Copy and Paste on a real WKWebView, pasteboard text as the reference's (port/notes.md Webview context menu) || workbench/contrib/webviewPanel | workbench contribution | M17 | verified | | webview panels as editors in groups (workbench/webview_panels.rs), reveal moves to the target group, `activeWebviewPanelId`/`activeCustomEditorId` per group, a focused group focuses its webview; `FIXTURE=webview-tests` and `FIXTURE=markdown-tests port/tools/webview-check`; cargo test -p app webview_panels; panel restore on restart and reload: ui-pair webview-panel-restore.json, cargo test -p app panels_with_a_serializer |