Visual Studio Code, rebuilt in Rust
Rust
feat(quickinput): item tooltip hovers and section separator buttons
rokarturedc698fc6db5
diff --git a/native/crates/app/src/command_palette.rs b/native/crates/app/src/command_palette.rsindex 1ac445761e4..6f91a4e82f2 100644--- a/native/crates/app/src/command_palette.rs+++ b/native/crates/app/src/command_palette.rs@@ -46,6 +46,9 @@ pub struct Pick {pub description: Option<String>,pub label_highlights: Matches,pub recently_used: bool,+ /// commandsQuickAccess.ts `toCommandPick`: `commandDescription.value` as the row's hover.+ // shortcut: a localized description's tooltip also shows its English original, split MenuItem.description when a language pack ships one.+ pub tooltip: Option<String>,}/// `CommandsHistory`: an LRU of command ids, each with the counter value of its last run.@@ -179,6 +182,7 @@ pub fn command_picks(commands: &[CommandPick], filter: &str, history: &CommandsHdescription: duplicate.then(|| candidate.command.id.clone()),label_highlights: candidate.label_highlights.clone(),recently_used,+ tooltip: candidate.command.description.clone(),}));}entriesdiff --git a/native/crates/app/src/command_palette/tests.rs b/native/crates/app/src/command_palette/tests.rsindex 0f8a51074ce..c303d1ed986 100644--- a/native/crates/app/src/command_palette/tests.rs+++ b/native/crates/app/src/command_palette/tests.rs@@ -118,6 +118,8 @@ fn tf_idf_reads_the_description() {let commands = vec![described, command("b", "Reopen Closed Editor", None), command("c", "Close Window", None)];let entries = command_picks(&commands, "trapping", &CommandsHistory::new(DEFAULT_HISTORY_LENGTH));assert_eq!(labels(&entries), ["--similar commands", "Toggle Tab Key Moves Focus"]);+ let PaletteEntry::Pick(pick) = &entries[1] else { panic!("a pick") };+ assert_eq!(pick.tooltip.as_deref(), Some("Moves focus around the workbench, also called tab trapping."), "toCommandPick: the description is the row's hover");}#[test]diff --git a/native/crates/app/src/quick_input.rs b/native/crates/app/src/quick_input.rsindex ccd4ff9f332..31cffe1ecb2 100644--- a/native/crates/app/src/quick_input.rs+++ b/native/crates/app/src/quick_input.rs@@ -118,6 +118,8 @@ pub struct Item {pub italic: bool,/// `iconClasses` of terminalIcon.ts `getColorClass`: the theme color that paints the label's first codicon.pub icon_color: Option<String>,+ /// `tooltip`: the row's hover, in place of the description's and the detail's.+ pub tooltip: Option<String>,}#[derive(Clone, PartialEq, Debug)]@@ -142,7 +144,7 @@ pub struct Header {pub struct Row {pub item: Item,/// The section the separators of the input put the item in, and that section's label.- section: usize,+ pub section: usize,section_label: Option<String>,/// The separator drawn above the row, on the first visible row of a section; its label may be empty.pub separator: Option<String>,diff --git a/native/crates/app/src/workbench/hover.rs b/native/crates/app/src/workbench/hover.rsindex 1452d745a24..4ff8e864ddf 100644--- a/native/crates/app/src/workbench/hover.rs+++ b/native/crates/app/src/workbench/hover.rs@@ -82,17 +82,32 @@ pub struct HoverOptions {sticky: bool,/// `AnchorAlignment.RIGHT`: above or below, the hover's right edge meets the target's.anchor_right: bool,+ /// `persistence.hideOnKeyDown`: a key no keybinding takes hides the hover.+ hide_on_key_down: bool,+ /// More horizontal padding inside the border, in px on each side.+ extra_padding_x: f32,}impl HoverOptions {/// getDefaultHoverDelegate('mouse'): tabs and Explorer rows.pub fn mouse() -> Self {- HoverOptions { position: HoverPosition::Below, follows_mouse: true, instant: false, group: None, max_height_ratio: 0.5, sticky: false, anchor_right: false }+ HoverOptions { position: HoverPosition::Below, follows_mouse: true, instant: false, group: None, max_height_ratio: 0.5, sticky: false, anchor_right: false, hide_on_key_down: true, extra_padding_x: 0. }+ }++ /// quickInput.ts `QuickInputHoverDelegate`: WorkbenchHoverDelegate('mouse') whose hover a key down leaves shown.+ pub fn quick_input() -> Self {+ HoverOptions { hide_on_key_down: false, ..Self::mouse() }+ }++ /// quickInputList.ts `showHover`: an item's tooltip right of its row, with a pointer.+ pub fn quick_input_item() -> Self {+ // Its host sits in the list, so quickInput.css `.quick-input-list .monaco-scrollable-element { padding: 0 6px }` pads it too.+ HoverOptions { position: HoverPosition::Right, follows_mouse: false, extra_padding_x: 6., ..Self::quick_input() }}/// createInstantHoverDelegate: the title bar's actions and command center.pub fn instant() -> Self {- HoverOptions { position: HoverPosition::Above, follows_mouse: false, instant: true, group: None, max_height_ratio: 0.5, sticky: false, anchor_right: false }+ HoverOptions { position: HoverPosition::Above, follows_mouse: false, instant: true, group: None, max_height_ratio: 0.5, sticky: false, anchor_right: false, hide_on_key_down: true, extra_padding_x: 0. }}/// statusbarPart.ts's WorkbenchHoverDelegate, with `maxHeightRatio: 0.9`.@@ -128,7 +143,7 @@ impl HoverOptions {/// compositeBarActions.ts: `HoverStyle.Pointer` on the side away from the side bar.pub fn composite_bar(position: HoverPosition) -> Self {- HoverOptions { position, follows_mouse: false, instant: false, group: Some("composite-bar-actions"), max_height_ratio: 0.5, sticky: false, anchor_right: false }+ HoverOptions { position, follows_mouse: false, instant: false, group: Some("composite-bar-actions"), max_height_ratio: 0.5, sticky: false, anchor_right: false, hide_on_key_down: true, extra_padding_x: 0. }}pub fn sticky(self) -> Self {@@ -207,6 +222,11 @@ impl Hovers {self.shown.as_ref().is_some_and(|shown| shown.target.options.sticky)}+ /// The shown hover stays on a key down: sticky, or `hideOnKeyDown: false`.+ pub fn stays_on_key_down(&self) -> bool {+ self.shown.as_ref().is_some_and(|shown| shown.target.options.sticky || !shown.target.options.hide_on_key_down)+ }+/// Called as the workbench renders: the frame about to paint records its targets again.pub fn forget_painted_targets(&self) {self.painted.borrow_mut().clear();@@ -552,7 +572,8 @@ impl Workbench {if let Some(measured) = hover.measured.get() {(content_width, content_height) = (measured.width, measured.height);}- let size = Size { width: (content_width + 2. * PADDING_X).min(MAX_WIDTH - HOVER_BORDER_WIDTH) + HOVER_BORDER_WIDTH, height: content_height + 2. * PADDING_Y + HOVER_BORDER_WIDTH };+ let padding_x = PADDING_X + hover.target.options.extra_padding_x;+ let size = Size { width: (content_width + 2. * padding_x).min(MAX_WIDTH - HOVER_BORDER_WIDTH) + HOVER_BORDER_WIDTH, height: content_height + 2. * PADDING_Y + HOVER_BORDER_WIDTH };let viewport = window.viewport_size();// A tooltip shown by itself has no hovered target: it points at where the entry was laid out.let target = if update { self.update_entry_bounds()? } else { hover.target.bounds };@@ -576,7 +597,7 @@ impl Workbench {.when(measuring, |panel| panel.invisible()).when(!measuring, |panel| panel.w(px(size.width))).when(!update && !measuring, |panel| panel.h(px(size.height)))- .px(px(PADDING_X))+ .px(px(padding_x)).py(px(PADDING_Y)).border_1().border_color(border)diff --git a/native/crates/app/src/workbench/input_box_view.rs b/native/crates/app/src/workbench/input_box_view.rsindex 7f2bfb9e6ba..2e3762f8443 100644--- a/native/crates/app/src/workbench/input_box_view.rs+++ b/native/crates/app/src/workbench/input_box_view.rs@@ -340,7 +340,15 @@ impl Workbench {pub(super) fn edit_input_box(&mut self, id: InputId, window: &mut Window, cx: &mut Context<Self>, edit: impl FnOnce(&mut InputBox)) -> Outcome {self.input_view_mut(id).caret_moved = Instant::now();match id {- InputId::QuickInput => self.with_current_quick_input(window, cx, |input| input.edit_input(edit)),+ InputId::QuickInput => {+ let before = self.quick_inputs.current().map(|input| input.input_box.value.clone());+ let outcome = self.with_current_quick_input(window, cx, |input| input.edit_input(edit));+ // quickInputBox.ts `hideHoverOnValueChange`: typing hides the hover a key down leaves.+ if self.quick_inputs.current().map(|input| &input.input_box.value) != before.as_ref() {+ self.dismiss_hover(cx);+ }+ outcome+ }InputId::Explorer => {self.edit_explorer_input(edit, cx);Outcome::done()diff --git a/native/crates/app/src/workbench/keyboard.rs b/native/crates/app/src/workbench/keyboard.rsindex c9a03843886..2af5ba3f491 100644--- a/native/crates/app/src/workbench/keyboard.rs+++ b/native/crates/app/src/workbench/keyboard.rs@@ -302,8 +302,8 @@ impl Workbench {}}// hoverService.ts `_keyDown` with hideOnKeyDown, which every workbench hover delegate sets; a sticky hover- // registers no key listener.- _ if self.hovers.is_sticky() => {}+ // registers no key listener; QuickInputHoverDelegate turns hideOnKeyDown off.+ _ if self.hovers.stays_on_key_down() => {}_ => self.hide_hover_on_key_down(window, cx),}}diff --git a/native/crates/app/src/workbench/quick_access.rs b/native/crates/app/src/workbench/quick_access.rsindex deddc2821d9..ef875fdfc1f 100644--- a/native/crates/app/src/workbench/quick_access.rs+++ b/native/crates/app/src/workbench/quick_access.rs@@ -422,6 +422,7 @@ impl Workbench {buttons,keybinding: keybinding.map(|item| item.keybinding.iter().map(|chord| chord.key_caps()).collect()).unwrap_or_default(),label_highlights: pick.label_highlights,+ tooltip: pick.tooltip,..Item::default()}));accepts.push(Accept::Command { id: pick.id, label: pick.label });diff --git a/native/crates/app/src/workbench/quick_input_view.rs b/native/crates/app/src/workbench/quick_input_view.rsindex bf390641950..894e1386ca6 100644--- a/native/crates/app/src/workbench/quick_input_view.rs+++ b/native/crates/app/src/workbench/quick_input_view.rs@@ -15,6 +15,7 @@ use gpui::{use serde_json::Value;use super::Workbench;+use super::hover::{HoverContent, HoverOptions};use super::input_box_view::{InputId, InputLook, InputView};use crate::commands::Outcome;use crate::main_thread_quick_open::Owner;@@ -198,6 +199,8 @@ impl Workbench {});});self.quick_inputs.closing = Some((closing, close));+ // An item's hover lives in the list's hover host and goes with it.+ self.dismiss_hover(cx);self.quick_inputs.input.reset();let previous = self.quick_inputs.previous_focus.take();if restore_focus && self.quick_inputs.focus.contains_focused(window, cx) {@@ -837,6 +840,8 @@ impl Workbench {let highlight = self.color(if focused { "quickInputList.focusHighlightForeground" } else { "list.highlightForeground" });// terminalIcon.ts `createColorStyleElement`: the color class wins over the focused row's color (`!important`).let label_icon_color = row.item.icon_color.as_deref().and_then(|key| self.theme.color(key)).unwrap_or(icon_color);+ // quickInputList.ts: an item's tooltip is the row's hover; without one the description and the detail each have theirs.+ let text_hovers = interactive && row.item.tooltip.is_none();let label_box = div().flex_1().min_w_0()@@ -872,10 +877,12 @@ impl Workbench {.children(row.item.description.as_ref().filter(|description| !description.is_empty()).map(|description| {// monaco-icon-label: .label-description at 0.9em, 0.7 opacity, 0.5em of its own 11.7px after the name.super::icon_label::label_description().debug_selector(|| "quick-input-description".into()).min_w_0().overflow_hidden().when(row.item.strikethrough, |label| label.line_through()).when(row.item.italic, |label| label.italic()).opacity(if focused { 1. } else { 0.7 }).child(self.highlighted_label(description, &row.description_highlights, highlight, 14., icon_color))+ .when(text_hovers, |label| label.relative().child(self.hover_target(("quick-input-description-hover", row_index), HoverContent::Text(description.clone()), HoverOptions::quick_input())))})),).children(row.item.detail.as_ref().filter(|detail| !detail.is_empty()).map(|detail| {div().h(px(ROW_HEIGHT)).flex().items_center().whitespace_nowrap().opacity(if focused { 1. } else { 0.7 }).child(self.highlighted_label(detail, &row.detail_highlights, highlight, 14., icon_color))+ .when(text_hovers, |line| line.relative().child(self.hover_target(("quick-input-detail-hover", row_index), HoverContent::Text(detail.clone()), HoverOptions::quick_input())))}));let separator = row.separator.clone().filter(|label| !label.is_empty());// quickInput.css: `.quick-input-list-entry .quick-input-list-separator` outranks the controller's pickerGroup.foreground rule.@@ -934,6 +941,8 @@ impl Workbench {false => self.theme.color("contrastActiveBorder").filter(|_| focused).map(|color| div().absolute().inset_0().rounded(px(3.)).border_1().border_dashed().border_color(color)),};let header = row.header.clone();+ // quickInputList.ts `focusInsideSeparator`: the separator's buttons also show while an item of its section is active or under the pointer.+ let focus_inside = [input.focused, self.quick_inputs.hovered].into_iter().flatten().any(|other| input.rows[other].section == row.section);let row_element = div().id(("quick-input-row", row_index)).relative()@@ -944,6 +953,7 @@ impl Workbench {.when_some(foreground, |row, color| row.text_color(color)).child(entry).children(outline)+ .when_some(row.item.tooltip.clone().filter(|_| interactive), |row, tooltip| row.child(self.hover_target(("quick-input-item-hover", row_index), HoverContent::Text(tooltip), HoverOptions::quick_input_item()))).when(interactive, |row| {row.on_hover(cx.listener(move |workbench, hovered: &bool, _, cx| {let inputs = &mut workbench.quick_inputs;@@ -959,16 +969,16 @@ impl Workbench {}))});match header {- Some(header) => div().flex().flex_col().child(self.quick_input_separator_row(header, position, row_index, cx)).child(row_element).into_any_element(),+ Some(header) => div().flex().flex_col().child(self.quick_input_separator_row(header, position, row_index, focus_inside, cx)).child(row_element).into_any_element(),None => row_element.into_any_element(),}}/// `QuickPickSeparatorElementRenderer` (`.quick-input-list-separator-as-item`): the label in semibold, its- /// description, and the separator's buttons while the pointer is over it.- fn quick_input_separator_row(&self, header: Header, position: usize, row_index: usize, cx: &mut Context<Self>) -> Stateful<Div> {+ /// description, and the separator's buttons while it or its section is active or under the pointer.+ fn quick_input_separator_row(&self, header: Header, position: usize, row_index: usize, focus_inside: bool, cx: &mut Context<Self>) -> Stateful<Div> {let color = self.color("descriptionForeground");- let hovered = self.quick_inputs.hovered_header == Some(row_index);+ let buttons_shown = focus_inside || self.quick_inputs.hovered_header == Some(row_index);let handle = header.handle;div().id(("quick-input-header", row_index))@@ -992,10 +1002,11 @@ impl Workbench {.child(div().font_weight(FontWeight::SEMIBOLD).whitespace_nowrap().child(header.label)).children(header.description.map(|description| div().ml(px(5.4)).min_w_0().overflow_hidden().whitespace_nowrap().text_size(px(10.8)).child(description))).child(div().flex_1())- .when(hovered, |row| {+ .when(buttons_shown, |row| {row.children(header.buttons.iter().enumerate().map(|(index, button)| {self.icon(button.codicon.as_deref().unwrap_or("blank"), 20., 16., self.foreground_or("icon.foreground")).id(("quick-input-header-button", index))+ .debug_selector(|| "quick-input-header-button".into()).mr(px(2.)).rounded(px(4.)).cursor_pointer()diff --git a/native/crates/app/src/workbench/quick_input_view/tests.rs b/native/crates/app/src/workbench/quick_input_view/tests.rsindex 24b8aef94da..046fe029327 100644--- a/native/crates/app/src/workbench/quick_input_view/tests.rs+++ b/native/crates/app/src/workbench/quick_input_view/tests.rs@@ -249,3 +249,94 @@ fn the_close_animation_ends_after_150ms_and_reopening_discards_it(cx: &mut TestAcx.run_until_parked();assert_eq!(state(cx), (false, true), "the old close timer changes nothing");}++/// quickInputList.ts `_registerSeparatorActionShowingListeners`: a separator's buttons show while an item of its+/// section is active, as the Open File button of Run Recent's `{shell} history` separator.+#[gpui::test]+fn a_separator_s_buttons_show_while_an_item_of_its_section_is_active(cx: &mut TestAppContext) {+ use crate::main_thread_quick_open::Owner;+ use crate::quick_input::{Button, Entry, Header, Item, Kind, QuickInput};++ 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 (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), crate::default_settings(), HostSync::new(std::sync::mpsc::channel().0), cx));+ let open_file = Button { handle: 0, codicon: Some("go-to-file".into()), tooltip: Some("Open File".into()), ..Button::default() };+ let items = vec![+ Entry::Header(Header { handle: -1, label: "current session".into(), ..Header::default() }),+ Entry::Item(Item { handle: 0, label: "ls".into(), pickable: true, ..Item::default() }),+ Entry::Header(Header { handle: -2, label: "zsh history".into(), buttons: vec![open_file], ..Header::default() }),+ Entry::Item(Item { handle: 1, label: "pwd".into(), pickable: true, ..Item::default() }),+ ];+ let id = workbench.update_in(cx, |workbench, window, cx| {+ let id = workbench.quick_inputs.add(QuickInput::new(0, Kind::QuickPick), Owner::Session(1));+ workbench.show_quick_input(id, window, cx);+ let input = workbench.quick_inputs.get_mut(id).unwrap();+ input.set_items(items);+ input.set_active_items(&[0]);+ id+ });+ cx.run_until_parked();+ assert!(cx.debug_bounds("quick-input-header-button").is_none(), "another section's item is active");++ workbench.update(cx, |workbench, cx| {+ workbench.quick_inputs.get_mut(id).unwrap().set_active_items(&[1]);+ cx.notify();+ });+ cx.run_until_parked();+ assert!(cx.debug_bounds("quick-input-header-button").is_some(), "an item of the separator's section is active");+}++/// quickInputList.ts `showHover` and `QuickInputHoverDelegate`: an item's tooltip shows right of its row after the+/// hover delay and stays while the user types; an item without one has its description's hover.+#[gpui::test]+fn an_item_s_tooltip_is_its_row_s_hover_until_the_value_changes(cx: &mut TestAppContext) {+ use crate::main_thread_quick_open::Owner;+ use crate::quick_input::{Entry, Item, Kind, QuickInput};++ 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-item-hover-{}", std::process::id()));+ std::fs::create_dir_all(&dir).unwrap();+ let (workbench, cx) = cx.add_window_view(|_, cx| {+ let mut workbench = Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), crate::default_settings(), HostSync::new(std::sync::mpsc::channel().0), cx);+ workbench.load_keybindings(crate::keybindings::default_keybindings(&[]), dir.join("keybindings.json"));+ workbench+ });+ let items = vec![Entry::Item(Item { handle: 0, label: "Toggle Tab Key Moves Focus".into(), description: Some("ignored".into()), tooltip: Some("Moves focus around the workbench.".into()), pickable: true, ..Item::default() })];+ workbench.update_in(cx, |workbench, window, cx| {+ let id = workbench.quick_inputs.add(QuickInput::new(0, Kind::QuickPick), Owner::Session(1));+ workbench.show_quick_input(id, window, cx);+ workbench.quick_inputs.get_mut(id).unwrap().set_items(items);+ });+ cx.run_until_parked();+ let shown = |cx: &mut gpui::VisualTestContext| workbench.read_with(cx, |workbench, _| workbench.hovers.shown_text().map(str::to_owned));+ let rest_on = |cx: &mut gpui::VisualTestContext, at: gpui::Point<gpui::Pixels>| {+ cx.simulate_mouse_move(at, None, Modifiers::none());+ cx.executor().advance_clock(std::time::Duration::from_millis(1500));+ cx.run_until_parked();+ };++ let row = cx.debug_bounds("quick-input-label").unwrap();+ rest_on(cx, row.center());+ assert_eq!(shown(cx).as_deref(), Some("Moves focus around the workbench."));+ let item_hover = cx.debug_bounds("workbench-hover").unwrap();+ cx.simulate_keystrokes("left");+ assert_eq!(shown(cx).as_deref(), Some("Moves focus around the workbench."), "hideOnKeyDown is off");+ cx.simulate_keystrokes("escape");+ assert_eq!(shown(cx), None, "the hover goes with the quick input");++ workbench.update_in(cx, |workbench, window, cx| {+ let id = workbench.quick_inputs.add(QuickInput::new(0, Kind::QuickPick), Owner::Session(1));+ workbench.show_quick_input(id, window, cx);+ workbench.quick_inputs.get_mut(id).unwrap().set_items(vec![Entry::Item(Item { handle: 1, label: "main.rs".into(), description: Some("Moves focus around the workbench.".into()), pickable: true, ..Item::default() })]);+ });+ cx.run_until_parked();+ let description = cx.debug_bounds("quick-input-description").unwrap();+ rest_on(cx, description.center());+ assert_eq!(shown(cx).as_deref(), Some("Moves focus around the workbench."));+ assert_eq!(item_hover.size.width - cx.debug_bounds("workbench-hover").unwrap().size.width, gpui::px(12.), "the list's 6px scrollable padding");+ cx.simulate_keystrokes("m");+ assert_eq!(shown(cx), None, "hideHoverOnValueChange");+}diff --git a/port/fixtures/ui-pair/quick-input-item-hover.json b/port/fixtures/ui-pair/quick-input-item-hover.jsonnew file mode 100644index 00000000000..6e207bc2bb6--- /dev/null+++ b/port/fixtures/ui-pair/quick-input-item-hover.json@@ -0,0 +1,13 @@+[+ { "wait": 4000 },+ { "hotkey": ["cmd", "shift", "p"] },+ { "wait": 600 },+ { "type": "toggle panel visibility" },+ { "wait": 800 },+ { "hover": [380, 55] },+ { "wait": 3000 },+ { "shot": "item-hover" },+ { "type": " x" },+ { "wait": 600 },+ { "shot": "after-typing" }+]diff --git a/port/ledger.md b/port/ledger.mdindex 7fcfdc82a2d..8432738abb0 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -252,7 +252,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 | ported | [3 M] platform/quickinput: anchored pickers for editor tabs, separator buttons (terminal run recent), item hovers; QuickWidget class 1; QuickTree class 4 (chat) | quickPickPin.ts pins match a terminal session command by its timestamp `id`, store label, description and detail, and stay for the session after the picker hides: cargo test -p app a_pinned_session_command_stays_pinned_until_the_session_ends; cargo test -p app quick_input, filters, tf_idf (`\p{Letter}` words: tf_idf::tests::words_follow_the_javascript_regex), command_palette: the model cases of quickinput.test.ts (pick, input, active and selected items, section navigation, keepScrollPosition, title bar visibility, close animation and reopening); api-tests quick input 11/11; ad-hoc palette screenshot 0.28% pixels differ at 2% fuzz; a row's description at the highlighted name's exact width (cargo test -p app the_description_follows_the_highlighted_name_s_exact_width; Cmd+P `ts` pair: `src` within 0.3 device px of the reference) |+| platform/quickinput | src/vs/platform | M9 | ported | [3 M] platform/quickinput: anchored pickers for editor tabs; QuickWidget class 1; QuickTree class 4 (chat) | quickPickPin.ts pins match a terminal session command by its timestamp `id`, store label, description and detail, and stay for the session after the picker hides: cargo test -p app a_pinned_session_command_stays_pinned_until_the_session_ends; cargo test -p app quick_input, filters, tf_idf (`\p{Letter}` words: tf_idf::tests::words_follow_the_javascript_regex), command_palette: the model cases of quickinput.test.ts (pick, input, active and selected items, section navigation, keepScrollPosition, title bar visibility, close animation and reopening); api-tests quick input 11/11; ad-hoc palette screenshot 0.28% pixels differ at 2% fuzz; a row's description at the highlighted name's exact width (cargo test -p app the_description_follows_the_highlighted_name_s_exact_width; Cmd+P `ts` pair: `src` within 0.3 device px of the reference); a separator's buttons show while an item of its section is active (a_separator_s_buttons_show_while_an_item_of_its_section_is_active); an item's tooltip is its hover, 6px wider from the list's padding, kept on key down and hidden on a value change (an_item_s_tooltip_is_its_row_s_hover_until_the_value_changes; port/fixtures/ui-pair/quick-input-item-hover.json: the command palette hover falls back below the row as the reference's) || 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 |