Skip to content

Visual Studio Code, rebuilt in Rust

Rust

test(title-bar): command center help lists Start Debugging at commandCenterOrder 50

rokarture165a528da13
diff --git a/native/crates/app/src/workbench/title_bar_actions/tests.rs b/native/crates/app/src/workbench/title_bar_actions/tests.rs
index ed92db3c01c..0a200f58ba8 100644
--- a/native/crates/app/src/workbench/title_bar_actions/tests.rs
+++ b/native/crates/app/src/workbench/title_bar_actions/tests.rs
@@ -79,7 +79,7 @@ fn the_title_bar_menus_toggle_the_command_center_and_the_layout_controls(cx: &mu
let rows = input.order.iter().map(|row| &input.rows[*row]);
(input.input_box.value.clone(), rows.map(|row| format!("{}|{}|{:?}", row.item.label, row.item.description.clone().unwrap_or_default(), row.item.keybinding)).collect::<Vec<_>>())
});
- assert_eq!(picker, (String::new(), vec![r#"Go to File||[["⌘", "P"]]"#.to_string(), r#"Show and Run Commands|>|[["⇧", "⌘", "P"]]"#.into(), r#"Go to Symbol in Editor|@|[["⇧", "⌘", "O"]]"#.into(), "More|?|[]".into(), format!("notes.txt|{}|[]", dir.display())]));
+ assert_eq!(picker, (String::new(), vec![r#"Go to File||[["⌘", "P"]]"#.to_string(), r#"Show and Run Commands|>|[["⇧", "⌘", "P"]]"#.into(), r#"Go to Symbol in Editor|@|[["⇧", "⌘", "O"]]"#.into(), "Start Debugging|debug |[]".into(), "More|?|[]".into(), format!("notes.txt|{}|[]", dir.display())]));
cx.simulate_click(point(px(width / 2.), px(20.)), Modifiers::default());
assert!(workbench.read_with(cx, |workbench, _| workbench.quick_inputs.current().is_some()), "a press in the quick input over the bar keeps it");
cx.simulate_keystrokes("down enter");