Skip to content

Visual Studio Code, rebuilt in Rust

Rust

fix(testing): run the tests the explorer shows, not the filtered ones

rokarturfe721bd3e96f
diff --git a/README.md b/README.md
index 5f1c7296ba2..4740b8c2b5d 100644
--- a/README.md
+++ b/README.md
@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V
```mermaid
pie showData
- "verified" : 407
- "ported" : 23
+ "verified" : 408
+ "ported" : 22
"removed" : 126
"n/a" : 28
```
@@ -20,7 +20,7 @@ pie showData
| area | verified | ported | removed | n/a | verified of in scope |
|---|---:|---:|---:|---:|---|
| src/vs/platform | 68 | 1 | 30 | 13 | `████████████████████ 99%` |
-| workbench contribution | 58 | 10 | 30 | 3 | `█████████████████░░░ 85%` |
+| workbench contribution | 59 | 9 | 30 | 3 | `█████████████████░░░ 87%` |
| built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` |
| MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |
| workbench service | 58 | 7 | 23 | 7 | `██████████████████░░ 89%` |
@@ -31,7 +31,7 @@ pie showData
| src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` |
| src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` |
| port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |
-| **all** | **407** | **23** | **126** | **28** | `███████████████████░ 95%` |
+| **all** | **408** | **22** | **126** | **28** | `███████████████████░ 95%` |
<!-- coverage:end -->
`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.
diff --git a/native/crates/app/src/workbench/testing_filter.rs b/native/crates/app/src/workbench/testing_filter.rs
index 96016118181..d20d78a5f15 100644
--- a/native/crates/app/src/workbench/testing_filter.rs
+++ b/native/crates/app/src/workbench/testing_filter.rs
@@ -199,6 +199,49 @@ impl Workbench {
Some((visible, included))
}
+ /// testingExplorerView.ts `getTreeIncludeExclude` in `visible` mode: the roots (or `within`), each first test
+ /// below whose visible runnable children are most of its children, and the hidden tests under an included one.
+ pub(super) fn testing_include_exclude(&self, group: u64, within: Option<&[String]>) -> (Vec<String>, Vec<String>) {
+ let visible = self.testing_filtered_tests().map(|(visible, _)| visible);
+ let mut include = Vec::new();
+ let mut exclude = Vec::new();
+ for root in within.unwrap_or(&self.testing.collection.roots) {
+ if !self.testing.collection.items.contains_key(root) || include.contains(root) {
+ continue;
+ }
+ include.push(root.clone());
+ for child in self.testing.collection.children_of(root) {
+ self.include_or_exclude(child, true, group, visible.as_ref(), &mut include, &mut exclude);
+ }
+ }
+ (include, exclude)
+ }
+
+ fn include_or_exclude(&self, id: &str, mut included: bool, group: u64, visible: Option<&HashSet<String>>, include: &mut Vec<String>, exclude: &mut Vec<String>) {
+ let collection = &self.testing.collection;
+ if !collection.items.contains_key(id) {
+ return;
+ }
+ let is_visible = |id: &str| visible.is_none_or(|visible| visible.contains(id));
+ if !is_visible(id) {
+ if included {
+ exclude.push(id.to_owned());
+ }
+ return;
+ }
+ let runnable = |id: &str| collection.items.get(id).is_some_and(|test| crate::testing::default_profile(&self.testing.profiles, group, test).is_some());
+ let children = collection.children_of(id);
+ let visible_runnable = children.iter().filter(|child| is_visible(child) && runnable(child)).count();
+ // One visible child probably fans out later, so it is that child that gets included.
+ if !included && runnable(id) && (visible_runnable == 0 || visible_runnable * 2 >= children.len()) && visible_runnable != 1 {
+ include.push(id.to_owned());
+ included = true;
+ }
+ for child in children {
+ self.include_or_exclude(child, included, group, visible, include, exclude);
+ }
+ }
+
/// The explorer's top level: index.ts shows a single root's children there.
pub(super) fn testing_top_level(&self) -> Vec<String> {
let collection = &self.testing.collection;
diff --git a/native/crates/app/src/workbench/testing_item_menu.rs b/native/crates/app/src/workbench/testing_item_menu.rs
index 4a3aa28da48..ee7f527bafc 100644
--- a/native/crates/app/src/workbench/testing_item_menu.rs
+++ b/native/crates/app/src/workbench/testing_item_menu.rs
@@ -36,10 +36,11 @@ pub(super) fn test_ids(args: &[Value]) -> Vec<String> {
impl Workbench {
pub(super) fn register_test_item_commands(&mut self) {
- // `RunVisibleAction` without `getTreeIncludeExclude`: the tests the filter hides still run, the hidden ones do not.
+ // `RunVisibleAction`: the shown tests within the row's.
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);
+ let (include, exclude) = workbench.testing_include_exclude(group, Some(&test_ids(&args)));
+ workbench.run_tests(&include, Some(&exclude), group, window, cx);
cx.notify();
Outcome::done()
});
diff --git a/native/crates/app/src/workbench/testing_item_menu/tests.rs b/native/crates/app/src/workbench/testing_item_menu/tests.rs
index b259f217e72..181d828e513 100644
--- a/native/crates/app/src/workbench/testing_item_menu/tests.rs
+++ b/native/crates/app/src/workbench/testing_item_menu/tests.rs
@@ -94,20 +94,53 @@ fn a_hidden_test_leaves_the_tree_and_runs_until_it_is_unhidden(cx: &mut TestAppC
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");
-
+ // The row's Run Test leaves it out as hidden in the tree, a run by id as `excluded` (`runResolvedTests`).
workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command("testing.run", vec![json!("c")], window, cx)));
cx.run_until_parked();
+ workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command("vscode.runTestsById", vec![json!(GROUP_RUN), 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");
+ assert_eq!(runs, [json!(["c\0t"]), json!(["c\0t"])], "a run excludes the hidden test");
+
+ 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.unhideAllTests", Vec::new(), window, cx)));
let excluded = workbench.read_with(cx, |workbench, _| workbench.testing.excluded.clone());
assert!(excluded.is_empty());
}
+/// testingExplorerView.ts `getTreeIncludeExclude`: the view title's Run Tests and a row's Run Test run the tests
+/// under them but exclude the ones the filter box hides.
+#[gpui::test]
+fn runs_from_the_explorer_exclude_the_tests_the_filter_hides(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, label: &str| json!({ "op": 0, "item": { "expand": 0, "item": { "extId": id, "label": label, "tags": [] } } });
+ workbench.testing.collection.apply(&[test("c", "c"), test("c\0math", "Math"), test("c\0math\0add", "adds"), test("c\0math\0sub", "subtracts"), test("c\0other", "Other")]);
+ workbench.testing.profiles = vec![profile(1, "Run", GROUP_RUN, true)];
+ workbench
+ });
+ workbench.update_in(cx, |workbench, window, cx| workbench.edit_testing_filter(|input| input.set_value("add".into()), window, cx));
+ cx.executor().advance_clock(std::time::Duration::from_millis(400));
+ cx.run_until_parked();
+
+ let mut runs = Vec::new();
+ for (command, args) in [("testing.runSelected", Vec::new()), ("testing.run", vec![json!("c\0math")])] {
+ workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command(command, args, window, cx)));
+ cx.run_until_parked();
+ runs.extend(host.try_iter().filter(|message| message.method == "$runControllerTests").map(|message| (message.args[0][0]["testIds"].clone(), message.args[0][0]["excludeExtIds"].clone())));
+ }
+ assert_eq!(runs, [(json!(["c"]), json!(["c\0math\0sub", "c\0other"])), (json!(["c\0math"]), json!(["c\0math\0sub"]))]);
+}
+
/// 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.rs
index 697cf14cf1c..033fb3eee61 100644
--- a/native/crates/app/src/workbench/testing_service.rs
+++ b/native/crates/app/src/workbench/testing_service.rs
@@ -219,7 +219,8 @@ impl Workbench {
}
/// testServiceImpl.ts `runTests`: the tests grouped by the profile of the group that runs each of them.
- pub(crate) fn run_tests(&mut self, test_ids: &[String], group: u64, window: &mut Window, cx: &mut Context<Self>) -> Option<String> {
+ /// Without `exclude`, the run excludes the hidden tests (`runResolvedTests`).
+ pub(crate) fn run_tests(&mut self, test_ids: &[String], exclude: Option<&[String]>, group: u64, window: &mut Window, cx: &mut Context<Self>) -> Option<String> {
let mut targets: Vec<(String, i64, Vec<String>)> = Vec::new();
for id in test_ids {
let Some(test) = self.testing.collection.items.get(id) else { continue };
@@ -233,7 +234,11 @@ impl Workbench {
return None;
}
let targets: Vec<Value> = targets.into_iter().map(|(controller, profile, ids)| json!({ "controllerId": controller, "profileId": profile, "testIds": ids })).collect();
- Some(self.run_resolved_tests(json!({ "group": group, "targets": targets }), window, cx))
+ let mut request = json!({ "group": group, "targets": targets });
+ if let Some(exclude) = exclude {
+ request["exclude"] = json!(exclude);
+ }
+ Some(self.run_resolved_tests(request, window, cx))
}
/// `runResolvedTests`: a live result, the workspace trust request, then `$runControllerTests` for each
diff --git a/native/crates/app/src/workbench/testing_view.rs b/native/crates/app/src/workbench/testing_view.rs
index 92c9e1ab907..fd268ab2140 100644
--- a/native/crates/app/src/workbench/testing_view.rs
+++ b/native/crates/app/src/workbench/testing_view.rs
@@ -13,7 +13,7 @@ use super::panel::PanelView;
use super::testing_filter::TestingFilter;
use crate::editor::OpenEditor;
use crate::menus::{MenuAction, MenuId, menu_group_actions};
-use crate::testing::{ExpandState, GROUP_DEBUG, GROUP_RUN, ResultState};
+use crate::testing::{ExpandState, GROUP_COVERAGE, GROUP_DEBUG, GROUP_RUN, ResultState};
/// testing.contribution.ts `Testing.ResultsPanelId`, the panel container of the Test Results view.
pub const TEST_RESULTS_VIEW_ID: &str = "workbench.panel.testResults";
@@ -95,6 +95,15 @@ impl Workbench {
Outcome::done()
});
}
+ // `ExecuteSelectedAction`: the view title's run of the tests the explorer shows.
+ for (id, group) in [("testing.runSelected", GROUP_RUN), ("testing.debugSelected", GROUP_DEBUG), ("testing.coverageSelected", GROUP_COVERAGE)] {
+ self.commands.register(id, move |workbench, _, window, cx| {
+ let (include, exclude) = workbench.testing_include_exclude(group, None);
+ workbench.run_tests(&include, Some(&exclude), group, window, cx);
+ cx.notify();
+ Outcome::done()
+ });
+ }
for (id, group) in [("testing.runCurrentFile", GROUP_RUN), ("testing.debugCurrentFile", GROUP_DEBUG)] {
self.commands.register(id, move |workbench, _, window, cx| {
let Some(path) = workbench.editors.active().map(|editor| editor.document().path.to_string_lossy().into_owned()) else { return Outcome::done() };
@@ -123,7 +132,7 @@ impl Workbench {
self.commands.register("vscode.runTestsById", |workbench, args, window, cx| {
let group = args.first().and_then(Value::as_u64).unwrap_or(GROUP_RUN);
let ids: Vec<String> = args.iter().skip(1).filter_map(|arg| arg.as_str().map(str::to_owned)).collect();
- Outcome::Ready(Ok(json!(workbench.run_tests(&ids, group, window, cx))))
+ Outcome::Ready(Ok(json!(workbench.run_tests(&ids, None, group, window, cx))))
});
self.commands.register("testing.reRunLastRun", |workbench, _, window, cx| {
let Some(last) = workbench.testing.results.first() else { return Outcome::done() };
@@ -162,7 +171,7 @@ impl Workbench {
/// The command's tests, else testExplorerActions.ts's "No tests found here" notification.
fn run_or_notify(&mut self, ids: &[String], group: u64, window: &mut Window, cx: &mut Context<Self>) {
- if self.run_tests(ids, group, window, cx).is_none() {
+ if self.run_tests(ids, None, group, window, cx).is_none() {
self.notify_error("No tests found here");
}
cx.notify();
@@ -229,9 +238,9 @@ impl Workbench {
actions = actions.child(self.search_action("refresh", "testing.refreshTests", self.testing.controllers.values().any(|controller| controller.capabilities & 2 != 0), cx));
actions = actions.child(match running {
true => self.search_action("debug-stop", "testing.cancelRun", true, cx),
- false => self.search_action("run-all", "testing.runAll", true, cx),
+ false => self.search_action("run-all", "testing.runSelected", true, cx),
});
- actions = actions.child(self.search_action("debug-alt-small", "testing.debugAll", !running, cx));
+ actions = actions.child(self.search_action("debug-alt-small", "testing.debugSelected", !running, cx));
// testExplorerActions.ts `continuousMenus`, ordered `RunUsing`.
if self.testing.profiles.iter().any(|profile| profile.supports_continuous_run) {
actions = actions.child(match self.testing.is_continuous_for("") {
diff --git a/port/ledger.md b/port/ledger.md
index d54cd07ef05..9d483a3a0af 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 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/testing | workbench contribution | M16 | verified | | `getTreeIncludeExclude` for the view title's Run Tests and Debug Tests (`ExecuteSelectedAction`) and a row's `RunVisibleAction`: the tests the filter box hides are excluded (cargo test -p app runs_from_the_explorer_exclude_the_tests_the_filter_hides); 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) |