Visual Studio Code, rebuilt in Rust
Rust
feat(testing): hide and unhide tests in the explorer
rokartura132487e10f0
diff --git a/native/crates/app/src/workbench/quick_open.rs b/native/crates/app/src/workbench/quick_open.rsindex 78d08e25b88..b1aec32c098 100644--- a/native/crates/app/src/workbench/quick_open.rs+++ b/native/crates/app/src/workbench/quick_open.rs@@ -66,6 +66,7 @@ impl Workbench {self.restore_debug_console_state();self.restore_outline_state();self.restore_testing_filter();+ self.restore_test_exclusions();}/// `handleActiveEditorChangeInHistory`. Upstream saves on shutdown only; the port saves on each change, as itsdiff --git a/native/crates/app/src/workbench/testing_continuous.rs b/native/crates/app/src/workbench/testing_continuous.rsindex 6ed7a0e293f..4c1a07d441c 100644--- a/native/crates/app/src/workbench/testing_continuous.rs+++ b/native/crates/app/src/workbench/testing_continuous.rs@@ -271,7 +271,8 @@ impl Workbench {/// `$startContinuousRun`, whose errors show as a notification.fn start_continuous_request(&mut self, test_id: &str, (controller, profile_id): &ProfileKey, window: &mut Window, cx: &mut Context<Self>) -> Task<()> {let target = if test_id.is_empty() { controller.as_str() } else { test_id };- let request = json!([{ "excludeExtIds": [], "profileId": profile_id, "controllerId": controller, "testIds": [target] }]);+ let exclude: Vec<&String> = self.testing.excluded.iter().filter(|id| *id != target).collect();+ let request = json!([{ "excludeExtIds": exclude, "profileId": profile_id, "controllerId": controller, "testIds": [target] }]);let trust = self.request_workspace_trust(&json!({ "message": "Running tests may execute code in your workspace." }), window, cx);cx.spawn(async move |this, cx| {let trusted = match trust {diff --git a/native/crates/app/src/workbench/testing_filter.rs b/native/crates/app/src/workbench/testing_filter.rsindex c11bcbd8010..96016118181 100644--- a/native/crates/app/src/workbench/testing_filter.rs+++ b/native/crates/app/src/workbench/testing_filter.rs@@ -186,7 +186,8 @@ impl Workbench {pub(super) fn testing_filtered_tests(&self) -> Option<(HashSet<String>, Vec<String>)> {let state = &self.testing_view.filter.state;let by_location = state.is_filtering_for(CURRENT_DOC) || state.is_filtering_for(OPENED_FILES);- if state.terms.is_empty() && state.globs.is_empty() && state.include_tags.is_empty() && state.exclude_tags.is_empty() {+ let hides_excluded = !self.testing.excluded.is_empty() && !state.is_filtering_for(HIDDEN);+ if !hides_excluded && state.terms.is_empty() && state.globs.is_empty() && state.include_tags.is_empty() && state.exclude_tags.is_empty() {return None;}let documents = if by_location { self.testing_filter_documents() } else { Vec::new() };@@ -210,6 +211,9 @@ impl Workbench {fn filter_test(&self, id: &str, documents: &[String], visible: &mut HashSet<String>, included: &mut Vec<String>) -> bool {let Some(item) = self.testing.collection.items.get(id) else { return false };let state = &self.testing_view.filter.state;+ if !state.is_filtering_for(HIDDEN) && self.testing.excluded.iter().any(|excluded| excluded == id) {+ return false;+ }let tags: Vec<&str> = item.item["tags"].as_array().into_iter().flatten().filter_map(Value::as_str).collect();let tags = match state.include_tags.is_empty() && state.exclude_tags.is_empty() {true => FilterResult::Include,@@ -417,11 +421,15 @@ impl Workbench {let filter = &self.testing_view.filter;let focused = filter.focus.is_focused(window);let border = if focused { self.color("focusBorder") } else { self.theme.color("input.border").unwrap_or(gpui::transparent_black().into()) };- // `updateFilterActiveState`: checked while a test is hidden, which needs testExclusions.ts.- let foreground = self.foreground_or("icon.foreground");+ // `updateFilterActiveState`: checked while a test is hidden.+ let checked = !self.testing.excluded.is_empty();+ let foreground = if checked { self.foreground_or("inputOption.activeForeground") } else { self.foreground_or("icon.foreground") };let bounds = filter.menu_bounds.clone();- let more_filters = self- .icon("filter", 22., 16., foreground)+ let mut more_filters = self.icon("filter", 22., 16., foreground);+ if checked {+ more_filters = more_filters.bg(self.color("inputOption.activeBackground"));+ }+ let more_filters = more_filters.id("testing-filter-menu").rounded(px(4.)).cursor_pointer()@@ -460,9 +468,9 @@ impl Workbench {actions.push(MenuAction::Separator);actions.push(item("testing.filters.toggleFuzzy".into(), "Fuzzy Match", state.fuzzy, true));actions.push(MenuAction::Separator);- // `excluded.hasAny` enables these; nothing is hidden until testExclusions.ts is ported.- actions.push(item(format!("testing.filters.toggle{HIDDEN}"), TERMS[4].1, state.is_filtering_for(HIDDEN), false));- actions.push(item("testing.filters.unhideAll".into(), "Unhide All Tests", false, false));+ let any_hidden = !self.testing.excluded.is_empty();+ actions.push(item(format!("testing.filters.toggle{HIDDEN}"), TERMS[4].1, state.is_filtering_for(HIDDEN), any_hidden));+ actions.push(item("testing.unhideAllTests".into(), "Unhide All Tests", false, any_hidden));let context = self.key_context(window);self.show_dropdown_menu_actions(actions, &context, anchor, Vec::new(), window, cx);}diff --git a/native/crates/app/src/workbench/testing_item_menu.rs b/native/crates/app/src/workbench/testing_item_menu.rsindex 5188ce3ea30..4a3aa28da48 100644--- a/native/crates/app/src/workbench/testing_item_menu.rs+++ b/native/crates/app/src/workbench/testing_item_menu.rs@@ -18,6 +18,7 @@ use crate::testing::{GROUP_COVERAGE, GROUP_DEBUG, GROUP_RUN, Profile, ResultStatconst TEST_ITEM_CONTEXT_MID: u64 = 16;/// testTypes.ts `TestRunProfileBitset.HasNonDefaultProfile`.const HAS_NON_DEFAULT_PROFILE: u64 = 1 << 4;+const EXCLUDED_KEY: &str = "excludedTestItems";/// The tests a test command runs on: test ids, or a row's `TestItemTreeElement.toJSON` (its chain of serialized/// tests below the controller, or `{ controllerId }` for a controller's root).@@ -35,7 +36,7 @@ pub(super) fn test_ids(args: &[Value]) -> Vec<String> {impl Workbench {pub(super) fn register_test_item_commands(&mut self) {- // `RunVisibleAction`; the port hides no tests, so `getTreeIncludeExclude` includes them all.+ // `RunVisibleAction` without `getTreeIncludeExclude`: the tests the filter hides still run, the hidden ones do not.for (id, group) in [("testing.run", GROUP_RUN), ("testing.debug", GROUP_DEBUG), ("testing.coverage", GROUP_COVERAGE)] {self.commands.register(id, move |workbench, args, window, cx| {workbench.run_tests(&test_ids(&args), group, window, cx);@@ -49,6 +50,20 @@ impl Workbench {}Outcome::done()});+ // `HideTestAction`, `UnhideTestAction` and `UnhideAllTestsAction`.+ for (id, exclude) in [("testing.hideTest", true), ("testing.unhideTest", false)] {+ self.commands.register(id, move |workbench, args, _, cx| {+ for test in test_ids(&args) {+ workbench.set_test_excluded(&test, exclude, cx);+ }+ Outcome::done()+ });+ }+ self.commands.register("testing.unhideAllTests", |workbench, _, _, cx| {+ workbench.testing.excluded.clear();+ workbench.store_test_exclusions(cx);+ Outcome::done()+ });// `RunUsingProfileAction`: a profile of the first test's, then the tests that profile can run.self.commands.register("testing.runUsing", |workbench, args, window, cx| {let ids = test_ids(&args);@@ -87,6 +102,8 @@ impl Workbench {add("testing.continuousRunUsingForTest", "Start Continous Run Using...", "builtin@2", 14., "testing.supportsContinuousRun && !testing.isContinuousModeOn", None, None);add("testing.runUsing", "Execute Using Profile...", "builtin@2", 15., "testing.hasNonDefaultProfile", None, None);add("testing.editFocusedTest", "Go to Test", "builtin@1", 20., "testing.testItemHasUri", None, None);+ add("testing.hideTest", "Hide Test", "builtin@2", 0., "testing.testItemIsHidden == false", None, None);+ add("testing.unhideTest", "Unhide Test", "", 21., "testing.testItemIsHidden == true", None, None);items.extend(self.menus.iter().filter(|item| item.menu == MenuId::TestItem).cloned());items}@@ -127,7 +144,7 @@ impl Workbench {("testing.hasCoverableTests", json!(capabilities & GROUP_COVERAGE != 0)),("view", json!("workbench.view.testing")),("testing.canRefresh", json!(refreshable && id == controller)),- ("testing.testItemIsHidden", json!(false)),+ ("testing.testItemIsHidden", json!(testing.excluded.iter().any(|excluded| excluded == id))),("testing.isContinuousModeOn", json!(supports_continuous && testing.is_continuous_for(id))),("testing.isParentRunningContinuously", json!(supports_continuous && testing.is_continuous_for_a_parent_of(id))),("testing.supportsContinuousRun", json!(supports_continuous)),@@ -139,6 +156,28 @@ impl Workbench {context}+ /// testExclusions.ts `toggle` with `exclude` given.+ fn set_test_excluded(&mut self, id: &str, exclude: bool, cx: &mut Context<Self>) {+ let excluded = &mut self.testing.excluded;+ match excluded.iter().position(|test| test == id) {+ Some(index) if !exclude => _ = excluded.remove(index),+ None if exclude => excluded.push(id.to_owned()),+ _ => return,+ }+ self.store_test_exclusions(cx);+ }++ /// The `excludedTestItems` workspace value.+ fn store_test_exclusions(&mut self, cx: &mut Context<Self>) {+ self.workspace_storage.lock().unwrap().set(EXCLUDED_KEY, json!(self.testing.excluded).to_string());+ cx.notify();+ }++ pub(super) fn restore_test_exclusions(&mut self) {+ let stored = self.workspace_storage.lock().unwrap().get(EXCLUDED_KEY).and_then(|raw| serde_json::from_str(raw).ok());+ self.testing.excluded = stored.unwrap_or_default();+ }+/// `TestItemTreeElement.toJSON`, which the host revives as the `TestItem`.pub(super) fn test_item_arg(&self, id: &str) -> Value {let Some(mut ancestor) = parent_id(id) else { return json!({ "controllerId": id }) };diff --git a/native/crates/app/src/workbench/testing_item_menu/tests.rs b/native/crates/app/src/workbench/testing_item_menu/tests.rsindex e8c352d3ec0..b259f217e72 100644--- a/native/crates/app/src/workbench/testing_item_menu/tests.rs+++ b/native/crates/app/src/workbench/testing_item_menu/tests.rs@@ -40,7 +40,7 @@ fn a_test_rows_context_menu_shows_and_runs_the_test_item_actions(cx: &mut TestAp}).collect();(titles, menu.args.clone())});- assert_eq!(titles, ["Run Test", "Debug Test", "Go to Test", "Turn on Continuous Run", "---", "Start Continous Run Using...", "Execute Using Profile..."]);+ assert_eq!(titles, ["Run Test", "Debug Test", "Go to Test", "Turn on Continuous Run", "---", "Hide Test", "Start Continous Run Using...", "Execute Using Profile..."]);assert_eq!(args, [json!({ "$mid": 16, "tests": [{ "expand": 0, "item": { "extId": "c\0t", "label": "t", "tags": [], "uri": { "scheme": "file", "path": "/a.test.js" } } }] })]);workbench.update_in(cx, |workbench, window, cx| {@@ -52,6 +52,62 @@ fn a_test_rows_context_menu_shows_and_runs_the_test_item_actions(cx: &mut TestApassert_eq!(runs, [json!(["c\0t"])], "Run Test runs the row's test with the default run profile");}+/// testExclusions.ts: Hide Test hides the row unless the filter has `@hidden`, its menu offers Unhide Test, runs+/// exclude it, the set is stored in the workspace, and Unhide All Tests brings it back.+#[gpui::test]+fn a_hidden_test_leaves_the_tree_and_runs_until_it_is_unhidden(cx: &mut TestAppContext) {+ let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();+ let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();+ let (sender, host) = std::sync::mpsc::channel();+ let (workbench, cx) = cx.add_window_view(|_, cx| {+ let mut workbench = Workbench::new(theme, app_root.clone(), None, crate::languages::Languages::new(&[]), crate::default_settings(), crate::host_sync::HostSync::new(sender), cx);+ let mut storage = storage::Storage::in_memory();+ let startup = Startup { enabled: false, workspace: None, empty_window_trusted: false, workspace_storage: &mut storage };+ workbench.workspace_trust = WorkspaceTrust::new(Arc::new(Mutex::new(storage::Storage::in_memory())), startup);+ let test = |id: &str| json!({ "op": 0, "item": { "expand": 0, "item": { "extId": id, "label": id, "tags": [] } } });+ workbench.testing.collection.apply(&[test("c"), test("c\0t"), test("c\0u")]);+ workbench.testing.profiles = vec![profile(1, "Run", GROUP_RUN, true)];+ workbench+ });+ let menu_titles = |workbench: &mut Workbench, window: &mut gpui::Window, cx: &mut gpui::Context<Workbench>| {+ workbench.show_test_item_menu("c\0t", gpui::Bounds::default(), window, cx);+ let menu = workbench.context_menu.as_ref().expect("a context menu shows");+ let titles: Vec<String> = menu.levels[0].actions.iter().filter_map(|action| match action {+ MenuAction::Command { title, .. } => Some(title.clone()),+ _ => None,+ }).collect();+ let args = menu.args.clone();+ workbench.hide_context_menu(window, cx);+ (titles, args)+ };++ workbench.update_in(cx, |workbench, window, cx| {+ let (_, args) = menu_titles(workbench, window, cx);+ drop(workbench.execute_command("testing.hideTest", args, window, cx));+ });+ let (titles, visible, stored) = workbench.update_in(cx, |workbench, window, cx| {+ let (titles, _) = menu_titles(workbench, window, cx);+ let visible = workbench.testing_filtered_tests().map(|(visible, _)| visible);+ (titles, visible, workbench.workspace_storage.lock().unwrap().get("excludedTestItems").map(str::to_owned))+ });+ assert!(titles.contains(&"Unhide Test".to_owned()) && !titles.contains(&"Hide Test".to_owned()), "{titles:?}");+ assert_eq!(visible, Some(["c\0u".to_owned()].into()), "the hidden test leaves the tree");+ assert_eq!(stored.as_deref(), Some(r#"["c\u0000t"]"#));++ workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command("testing.filters.toggle@hidden", Vec::new(), window, cx)));+ let visible = workbench.read_with(cx, |workbench, _| workbench.testing_filtered_tests().map(|(visible, _)| visible));+ assert_eq!(visible, Some(["c\0t".to_owned(), "c\0u".to_owned()].into()), "`@hidden` shows it again");++ workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command("testing.run", vec![json!("c")], window, cx)));+ cx.run_until_parked();+ let runs: Vec<_> = host.try_iter().filter(|message| message.method == "$runControllerTests").map(|message| message.args[0][0]["excludeExtIds"].clone()).collect();+ assert_eq!(runs, [json!(["c\0t"])], "a run excludes the hidden test");++ workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command("testing.unhideAllTests", Vec::new(), window, cx)));+ let excluded = workbench.read_with(cx, |workbench, _| workbench.testing.excluded.clone());+ assert!(excluded.is_empty());+}+/// testingExplorerView.ts `fillActionBar`: a row's actions are `MenuId.TestItem`'s `inline` group, so a coverage/// profile adds Run Test with Coverage, a controller without a debug profile has no Debug Test, and an extension's/// `testing/item/context` `inline` contribution shows beside them.diff --git a/native/crates/app/src/workbench/testing_service.rs b/native/crates/app/src/workbench/testing_service.rsindex e88f181d2ce..697cf14cf1c 100644--- a/native/crates/app/src/workbench/testing_service.rs+++ b/native/crates/app/src/workbench/testing_service.rs@@ -27,6 +27,8 @@ pub struct TestingService {/// Newest first, as testResultService.ts keeps them.pub results: Vec<TestResult>,pub continuous: Vec<super::testing_continuous::ContinuousRun>,+ /// testExclusions.ts: the hidden tests' ids, in the order they were hidden.+ pub excluded: Vec<String>,subscribed: bool,next_run: u64,}@@ -236,7 +238,10 @@ impl Workbench {/// `runResolvedTests`: a live result, the workspace trust request, then `$runControllerTests` for each/// controller; the result completes when every controller answers, or at once without trust.- pub(super) fn run_resolved_tests(&mut self, request: Value, window: &mut Window, cx: &mut Context<Self>) -> String {+ pub(super) fn run_resolved_tests(&mut self, mut request: Value, window: &mut Window, cx: &mut Context<Self>) -> String {+ if request.get("exclude").is_none() {+ request["exclude"] = json!(self.testing.excluded);+ }let run = self.testing.create_result(None, request.clone());self.show_test_results_on_start(&run, cx);let trust = match self.request_workspace_trust(&json!({ "message": "Running tests may execute code in your workspace." }), window, cx) {diff --git a/native/crates/app/src/workbench/testing_view.rs b/native/crates/app/src/workbench/testing_view.rsindex 3cb8deae159..92c9e1ab907 100644--- a/native/crates/app/src/workbench/testing_view.rs+++ b/native/crates/app/src/workbench/testing_view.rs@@ -326,6 +326,10 @@ impl Workbench {if let Some(description) = item.item["description"].as_str() {row = row.child(div().ml(px(6.)).text_size(px(12.)).opacity(0.7).whitespace_nowrap().child(description.to_owned()));}+ // testing.css `.test-is-hidden`: dimmed, with `testing-hidden` beside it unless the row is hovered.+ if self.testing.excluded.iter().any(|excluded| excluded == id) {+ row = row.opacity(0.8).child(self.icon("eye-closed", 16., 16., twistie_color).ml_auto().mr(px(9.)).group_hover("testing-row", |icon| icon.invisible()));+ }row = row.child(actions).on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &MouseDownEvent, window, cx| {workbench.show_test_item_menu(&menu_id, gpui::Bounds::new(event.position, Default::default()), window, cx);}));diff --git a/port/ledger.md b/port/ledger.mdindex 7cbad978dee..d54cd07ef05 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -546,7 +546,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/telemetry | workbench contribution | M19 | verified | | the contribution logs to the NullTelemetryService and registers Show Telemetry only when supportsTelemetry, false in the built product: nothing to port; port/tools/telemetry-source-check no endpoint in 18370 shipped files (SELF_TEST finds 9 in the inert packages) || workbench/contrib/terminal | workbench contribution | M15 | verified | | workbench/terminal_view.rs: the Terminal panel view, terminals, split, kill, rename, profiles (`newWithProfile` with `profileName`: cargo test -p app new_with_profile), tabs list, the `TerminalInstanceContext` menu; no exit alert after a Ctrl+D exit (cargo test -p app a_ctrl_d_exit_shows_no_exit_alert); gutter command decorations with their menu (workbench/terminal_decorations.rs), scroll to previous/next command (terminal/marks.rs; cargo test -p app terminal::marks); ui-pair against the reference. Copy as HTML and Copy Output as HTML (terminal/serialize_html.rs; cargo test -p app serialize_html); the decoration hover with duration and exit code (cargo test -p app terminal_decorations, hover); Record Terminal Session (cargo test -p app a_recording_keeps_each_kind_of_event); overview ruler marks, Toggle Visibility (cargo test -p app toggle_visibility_writes_the_decorations_setting), the Rerun Command trust prompt, `terminal.integrated.cwd` variables (cargo test -p app the_cwd_setting_resolves_its_variables); ui-pair of OSC 99, decorations, overview ruler, Copy as HTML and Record Terminal Session (port/results/terminal.md); tab description `terminal.integrated.tabs.description` with `${cwdFolder}` (terminal/label.rs, TerminalLabelComputer and labels.ts `template`), the single tab "fish - docs": cargo test -p app terminal::label; ui-pair m12/folder-terminal.json matches but the reference's panel overflow "..." (its Ports view, remote is out of scope). The grid below `padding-block` 8px with columns from the rendered cell, the title toolbar at the reference's x and its "..." menu (cargo test -p app terminal_view::tests), Run Selected Text and Run Active File with paths quoted as `preparePathForShell` (cargo test -p app paths_are_quoted, call_operator); ui-pair m11/task-presentation.json for `reveal: silent` and `close` (port/results/manage-menu.md). Tab list rows: 4px inset, 8px padding (modernUI tabs.css), `┌ ` prefix, icon, name and description at the reference's device pixels (cargo test -p app a_tab_row_is_inset_and_its_label_is_one_line_of_text; ui-pair terminal tabs). Persistent sessions: panel groups with their splits and active panes, and terminal editors, revive with their history after a restart (cargo test -p app panel_terminals_revive_in_their_groups_after_a_restart a_terminal_editor_revives_with_its_history_after_a_restart) || workbench/contrib/terminalContrib | workbench contribution | M15 | verified | | links (terminal/link_parsing.rs, link_computer.rs, workbench/terminal_links.rs: Cmd+click URLs and paths with line:column), sendSequence, sendSignal, zoom (font size commands, Cmd+wheel), autoReplies (terminal/auto_replies.rs), find (terminal/search.rs and workbench/terminal_find.rs: case, whole word, regex, count, previous/next, match highlights), prompt input model (terminal/prompt_input.rs), suggest (workbench/terminal_suggest.rs), history (terminal/history.rs, workbench/terminal_history.rs: Run Recent Command, Go to Recent Directory, pinned items, shell history files), quick access (`term `, workbench/terminal_quick_access.rs), sticky scroll (terminal/sticky_scroll.rs, workbench/terminal_sticky_scroll.rs); cargo test -p app link_, terminal::search, prompt_input, auto_replies, terminal_contrib, terminal_links, terminal::history, sticky_scroll, quick_access; ui-pair of Run Recent Command, `term ` and sticky scroll; resize overlay (workbench/terminal_resize_overlay.rs), environment changes (Show Environment Contributions, workbench/terminal_environment.rs; cargo test -p app environment_collection), developer Write Data to Terminal (Show Terminal Texture Atlas and Restart Pty Host have no counterpart: GPUI draws without an atlas page and there is no pty host), command guide (cargo test -p app terminal::marks), notification (OSC 99, terminal/osc99.rs, workbench/terminal_notifications.rs; cargo test -p app osc99), quick fix (terminal/quick_fix.rs, workbench/terminal_quick_fix.rs: builtin fixes, extension providers, light bulb, Cmd+. widget, decoration menu; cargo test -p app quick_fix), accessibility (terminal/accessible_buffer.rs, the terminal provider of workbench/accessible_view.rs; cargo test -p app accessible), links in wrapped lines with the hover and underline (cargo test -p app terminal_links). inlineHint without AI: the initial hint "Show suggestions ⌃Space" with its dismiss links (workbench/terminal_initial_hint.rs; ui-pair against the reference); its Copilot CLI part, chat and voice are AI (removed), wslRecommendation is Windows (port/notes.md milestone 15) |-| workbench/contrib/testing | workbench contribution | M16 | ported | [3 S] testing_item_menu.rs:test_item_context: testExclusions.ts not ported: no Hide Test or Unhide Test, `testing.testItemIsHidden` is always false, and the filter menu's Show Hidden Tests and Unhide All Tests are disabled | The explorer's filter box (testingExplorerFilter.ts and testExplorerFilterState.ts: text with history, terms, tags, globs, fuzzy; cargo test -p app testing_filter); A test row's actions are `MenuId.TestItem`'s `inline` group with the testing icons (testingExplorerView.ts `fillActionBar`: cargo test -p app a_test_row_shows_the_test_item_menu_s_inline_group); A test row's context menu (testingExplorerView.ts `onContextMenu`: `MenuId.TestItem` but `inline`, the `getActionableElementActions` keys, the row as `TestItemContext`; cargo test -p app a_test_rows_context_menu_shows_and_runs_the_test_item_actions); `TreeSorter` by location with `compareFileNames` (cargo test -p app children_sort_by_line_then_by_file_name_order). The view title's continuous run dropdown when several profiles of controllers with tests support it (testingExplorerView.ts `getContinuousRunDropdown`: group labels, checked profiles, `stopProfile` cancels only that profile; cargo test -p app the_view_title_dropdown_starts_and_stops_one_profile_of_several); `testing.continuousRunUsingForTest` picks from the test's controller's profiles (cargo test -p app continuous_run_using_picks_from_the_tests_controller_only); testingContinuousRunService.ts: Turn on Continuous Run of a test and Start Continuous Run each hold one cancellable `$startContinuousRun` per profile until stopped, the eye activity badge, `testing.isContinuousModeOn`, the last run's profiles in workspace storage (cargo test -p app a_continuous_run_holds_one_cancellable_request_per_profile_until_it_stops). The Testing item's activity badge: the spinner during a run, else the newest result's `testing.countBadge` count (cargo test -p app the_testing_item_spins). ui-pair port/fixtures/debug-node with tests-provider: Testing view tree, Run All, pass/fail icons, Test Results tree and output, run glyphs in the gutter; cargo test -p app testing::; testServiceImpl.ts `runResolvedTests` asks for workspace trust after the live result is created, a refusal completes it (cargo test -p app a_test_run_waits_for_workspace_trust_and_completes_when_it_is_refused) |+| workbench/contrib/testing | workbench contribution | M16 | ported | [3 M] testing_item_menu.rs:register_test_item_commands: `RunVisibleAction` and the view title's run without `getTreeIncludeExclude` (testingExplorerView.ts), so the tests the filter box hides still run | The explorer's filter box (testingExplorerFilter.ts and testExplorerFilterState.ts: text with history, terms, tags, globs, fuzzy; cargo test -p app testing_filter); testExclusions.ts: Hide Test, Unhide Test, Unhide All Tests, `@hidden`, `excludedTestItems` in workspace storage, runs exclude hidden tests (cargo test -p app a_hidden_test_leaves_the_tree_and_runs_until_it_is_unhidden); A test row's actions are `MenuId.TestItem`'s `inline` group with the testing icons (testingExplorerView.ts `fillActionBar`: cargo test -p app a_test_row_shows_the_test_item_menu_s_inline_group); A test row's context menu (testingExplorerView.ts `onContextMenu`: `MenuId.TestItem` but `inline`, the `getActionableElementActions` keys, the row as `TestItemContext`; cargo test -p app a_test_rows_context_menu_shows_and_runs_the_test_item_actions); `TreeSorter` by location with `compareFileNames` (cargo test -p app children_sort_by_line_then_by_file_name_order). The view title's continuous run dropdown when several profiles of controllers with tests support it (testingExplorerView.ts `getContinuousRunDropdown`: group labels, checked profiles, `stopProfile` cancels only that profile; cargo test -p app the_view_title_dropdown_starts_and_stops_one_profile_of_several); `testing.continuousRunUsingForTest` picks from the test's controller's profiles (cargo test -p app continuous_run_using_picks_from_the_tests_controller_only); testingContinuousRunService.ts: Turn on Continuous Run of a test and Start Continuous Run each hold one cancellable `$startContinuousRun` per profile until stopped, the eye activity badge, `testing.isContinuousModeOn`, the last run's profiles in workspace storage (cargo test -p app a_continuous_run_holds_one_cancellable_request_per_profile_until_it_stops). The Testing item's activity badge: the spinner during a run, else the newest result's `testing.countBadge` count (cargo test -p app the_testing_item_spins). ui-pair port/fixtures/debug-node with tests-provider: Testing view tree, Run All, pass/fail icons, Test Results tree and output, run glyphs in the gutter; cargo test -p app testing::; testServiceImpl.ts `runResolvedTests` asks for workspace trust after the live result is created, a refusal completes it (cargo test -p app a_test_run_waits_for_workspace_trust_and_completes_when_it_is_refused) || workbench/contrib/themes | workbench contribution | M9 | verified | | Color Theme picker (`workbench.action.selectTheme`, Cmd+K Cmd+T): rows, order and descriptions as the reference, 200ms preview, Escape restores, accept writes `workbench.colorTheme`; File Icon Theme picker (`workbench.action.selectIconTheme`, Themes submenu): None and the installed themes, preview, Escape restores, accept writes `workbench.iconTheme` (null for None) (cargo test -p app themes); Product Icon Theme picker (`workbench.action.selectProductIconTheme`, Themes submenu): Default and the installed themes, writes `workbench.productIconTheme` (cargo test -p app product_icon; product-icons-pair `picker`: the same rows, except the reference's "Test Product Icon Theme" of vscode-colorize-tests, a test extension the port does not ship); no Marketplace browsing, no `window.autoDetectColorScheme` || workbench/contrib/timeline | workbench contribution | M14 | verified | | Timeline view (workbench/timeline_view.rs, timeline.rs): active editor and workspace timelines, paging, follow active editor, excluded sources in profile storage, compare selected, keyboard, `timeline/item/context` and title menus: cargo test -p app timeline; the title toolbar is a tab stop between the pane header and the tree (Shift+Tab focuses its first action with its hover, Left/Right, Enter): cargo test -p app shift_tab_reaches_the_title_toolbar; ui-pair m12/timeline.json header step matches; item labels draw their `$(icon)`s (cargo test -p app an_item_label_draws_its_icons); a `null` `timeline.pageSize` follows the view height (cargo test -p app a_null_page_size_follows_the_view_height) || 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) |