Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(testing): port the test glyph's gutter menu with testing/item/gutter

rokarturbdbb4db62f1b
diff --git a/README.md b/README.md
index 2be86d92079..82513568b76 100644
--- a/README.md
+++ b/README.md
@@ -7,12 +7,12 @@ Not a fork of VS Code's TypeScript: this repository holds the port only. Upstrea
## Coverage
<!-- coverage:start -->
-Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (586 rows). Verified means 1:1 with a named check; ported means written, with its open gaps in the same row.
+Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (587 rows). Verified means 1:1 with a named check; ported means written, with its open gaps in the same row.
```mermaid
pie showData
"verified" : 415
- "ported" : 17
+ "ported" : 18
"removed" : 126
"n/a" : 28
```
@@ -24,14 +24,14 @@ pie showData
| built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` |
| MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |
| workbench service | 63 | 2 | 23 | 7 | `███████████████████░ 97%` |
-| src/vs/editor/contrib | 53 | 1 | 2 | 1 | `████████████████████ 98%` |
+| src/vs/editor/contrib | 53 | 2 | 2 | 1 | `███████████████████░ 96%` |
| workbench part | 9 | 2 | 2 | 0 | `████████████████░░░░ 82%` |
| extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` |
| cross-cutting check | 5 | 0 | 0 | 0 | `████████████████████ 100%` |
| src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` |
| src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` |
| port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |
-| **all** | **415** | **17** | **126** | **28** | `███████████████████░ 96%` |
+| **all** | **415** | **18** | **126** | **28** | `███████████████████░ 96%` |
<!-- 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/menus.rs b/native/crates/app/src/menus.rs
index fe8c0f5e544..d3939d901b0 100644
--- a/native/crates/app/src/menus.rs
+++ b/native/crates/app/src/menus.rs
@@ -130,6 +130,8 @@ pub enum MenuId {
/// `MenuId.TestItem`: a test row's inline actions and context menu in the Testing view.
TestItem,
TestProfilesContext,
+ /// `MenuId.TestItemGutter`: a test's items in the editor gutter's menu.
+ TestItemGutter,
/// `MenuId.DebugCallStackContext`: a Call Stack row's context menu.
DebugCallStackContext,
/// `MenuId.DebugVariablesContext`: a Variables row's context menu.
@@ -968,7 +970,7 @@ pub fn workbench_menus() -> Vec<MenuItem> {
/// menusExtensionPoint.ts `apiMenus`: the `contributes.menus` keys of the menus the port shows. `commandPalette`
/// is read by `command_palette::menu`.
-const API_MENUS: [(&str, MenuId); 59] = [
+const API_MENUS: [(&str, MenuId); 60] = [
("file/newFile", MenuId::NewFile),
("editor/context", MenuId::EditorContext),
("explorer/context", MenuId::ExplorerContext),
@@ -1000,6 +1002,7 @@ const API_MENUS: [(&str, MenuId); 59] = [
("timeline/item/context", MenuId::TimelineItemContext),
("testing/item/context", MenuId::TestItem),
("testing/profiles/context", MenuId::TestProfilesContext),
+ ("testing/item/gutter", MenuId::TestItemGutter),
("debug/callstack/context", MenuId::DebugCallStackContext),
("debug/variables/context", MenuId::DebugVariablesContext),
("debug/watch/context", MenuId::DebugWatchContext),
diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rs
index fd58594f9d3..72d0301d91d 100644
--- a/native/crates/app/src/workbench.rs
+++ b/native/crates/app/src/workbench.rs
@@ -40,6 +40,7 @@ mod debug_view;
mod disassembly_view;
mod testing_continuous;
mod testing_filter;
+mod testing_gutter;
mod testing_item_menu;
mod testing_profiles;
pub(crate) mod testing_service;
diff --git a/native/crates/app/src/workbench/editor_menus.rs b/native/crates/app/src/workbench/editor_menus.rs
index d411d9ccf5e..8da3266b90e 100644
--- a/native/crates/app/src/workbench/editor_menus.rs
+++ b/native/crates/app/src/workbench/editor_menus.rs
@@ -163,13 +163,14 @@ impl Workbench {
self.show_context_menu(MenuId::EditorContext, &context, point_anchor(anchor), vec![uri], window, cx);
}
- /// editorLineNumberMenu.ts `doShow`: `MenuId.EditorLineNumberContext` with `editorLineNumber` and the
- /// `{ lineNumber, uri }` argument; a click on a line no selection touches selects that line first.
- pub(super) fn show_line_number_context_menu(&mut self, line: usize, pointer: Point<Pixels>, window: &mut Window, cx: &mut Context<Self>) {
+ /// editorLineNumberMenu.ts `doShow`: the testing group of the line's test glyph (testingDecorations.ts's
+ /// gutter actions generator, `1_testing`), then `MenuId.EditorLineNumberContext` with `editorLineNumber` and the
+ /// `{ lineNumber, uri }` argument. On the line numbers, a line no selection touches is selected first.
+ pub(super) fn show_line_number_context_menu(&mut self, line: usize, pointer: Point<Pixels>, on_line_numbers: bool, window: &mut Window, cx: &mut Context<Self>) {
let editor = self.editors.active_mut().expect("the gutter is clickable only with an editor open");
let line_end = Position::new(line, editor.document().lines[line].chars().count());
let touched = editor.selections.iter().any(|selection| !selection.is_empty() && selection.start() <= line_end && Position::new(line, 0) <= selection.end());
- if !touched {
+ if on_line_numbers && !touched {
let before = editor.selections.clone();
editor.set_selections(vec![crate::editor::Selection { anchor: Position::new(line, 0), head: line_end }]);
self.cursors_changed(before, crate::editor::Reveal::Nothing, "api", cx);
@@ -178,7 +179,13 @@ impl Workbench {
let mut context = self.key_context(window);
context.insert("editorLineNumber".into(), json!(line + 1));
let arg = json!({ "lineNumber": line + 1, "uri": document_uri(editor) });
- self.show_context_menu(MenuId::EditorLineNumberContext, &context, point_anchor(pointer), vec![arg], window, cx);
+ let mut actions = self.test_gutter_actions(line as u32 + 1, window);
+ let menu = crate::menus::menu_actions(&self.menus, MenuId::EditorLineNumberContext, &context);
+ if !actions.is_empty() && !menu.is_empty() {
+ actions.push(MenuAction::Separator);
+ }
+ actions.extend(menu);
+ self.show_context_menu_actions(actions, &context, point_anchor(pointer), vec![arg], window, cx);
}
/// `onTabContextMenu`: `MenuId.EditorTitleContext` with the context keys of the right-clicked editor, which
diff --git a/native/crates/app/src/workbench/editor_menus/tests.rs b/native/crates/app/src/workbench/editor_menus/tests.rs
index 517208bff23..3b8d94698ba 100644
--- a/native/crates/app/src/workbench/editor_menus/tests.rs
+++ b/native/crates/app/src/workbench/editor_menus/tests.rs
@@ -292,7 +292,7 @@ fn the_line_number_menu_selects_the_line_and_shows_contributed_items(cx: &mut Te
};
workbench.update(cx, |workbench, _| workbench.menus.extend(crate::menus::extension_menus(&[extension])));
let pointer = point(px(30.), px(100.));
- workbench.update_in(cx, |workbench, window, cx| workbench.show_line_number_context_menu(1, pointer, window, cx));
+ workbench.update_in(cx, |workbench, window, cx| workbench.show_line_number_context_menu(1, pointer, true, window, cx));
assert_eq!(menu_titles(&workbench, cx), ["Copy Line Link"]);
let selections = workbench.read_with(cx, |workbench, _| workbench.editors.active().unwrap().selections.clone());
assert_eq!(selections, [Selection { anchor: Position::new(1, 0), head: Position::new(1, 11) }]);
diff --git a/native/crates/app/src/workbench/gutter_mouse.rs b/native/crates/app/src/workbench/gutter_mouse.rs
index 61c240e56a6..fd8e1638078 100644
--- a/native/crates/app/src/workbench/gutter_mouse.rs
+++ b/native/crates/app/src/workbench/gutter_mouse.rs
@@ -17,7 +17,7 @@ impl Workbench {
workbench.selecting_text = Some(MouseDown { count: event.click_count, on_gutter: true });
workbench.gutter_line_select(line, event.modifiers, event.modifiers.shift, true, cx);
}))
- .on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &MouseDownEvent, window, cx| workbench.show_line_number_context_menu(line, event.position, window, cx)))
+ .on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &MouseDownEvent, window, cx| workbench.show_line_number_context_menu(line, event.position, true, window, cx)))
.on_mouse_move(cx.listener(move |workbench, event: &MouseMoveEvent, _, cx| {
if event.pressed_button == Some(MouseButton::Left) && workbench.drag_scrolling.is_none() {
workbench.drag_select(line, 0., event.modifiers, cx);
diff --git a/native/crates/app/src/workbench/testing_filter.rs b/native/crates/app/src/workbench/testing_filter.rs
index d20d78a5f15..a34814ad26d 100644
--- a/native/crates/app/src/workbench/testing_filter.rs
+++ b/native/crates/app/src/workbench/testing_filter.rs
@@ -427,12 +427,7 @@ impl Workbench {
}
let Some((_, included)) = self.testing_filtered_tests() else { return };
for test in included {
- let mut parent = parent_id(&test);
- while let Some(id) = parent {
- self.testing_view.collapsed.remove(id);
- self.testing_view.expanded.insert(id.to_owned());
- parent = parent_id(id);
- }
+ self.expand_test_ancestors(&test);
}
}
diff --git a/native/crates/app/src/workbench/testing_gutter.rs b/native/crates/app/src/workbench/testing_gutter.rs
new file mode 100644
index 00000000000..f37ad32b21c
--- /dev/null
+++ b/native/crates/app/src/workbench/testing_gutter.rs
@@ -0,0 +1,139 @@
+//! testingDecorations.ts's gutter actions generator: the `getContextMenuActions` of the line's
+//! `RunSingleTestDecoration` or `MultiRunTestDecoration`, which the editor gutter's menu shows first.
+
+use gpui::Window;
+use serde_json::{Value, json};
+
+use super::Workbench;
+use super::testing_item_menu::HAS_NON_DEFAULT_PROFILE;
+use crate::commands::Outcome;
+use crate::menus::{MenuAction, MenuId, menu_actions};
+use crate::testing::{GROUP_COVERAGE, GROUP_DEBUG, GROUP_RUN, ResultState, parent_id};
+
+impl Workbench {
+ pub(super) fn register_testing_gutter_commands(&mut self) {
+ // testing.contribution.ts: reveals the test and opens the Test Explorer.
+ self.commands.register("_revealTestInExplorer", |workbench, args, window, cx| {
+ let Some(id) = args.first().and_then(|arg| arg.as_str().or(arg["extId"].as_str())) else { return Outcome::done() };
+ workbench.expand_test_ancestors(id);
+ workbench.execute_command("workbench.view.testing", Vec::new(), window, cx)
+ });
+ }
+
+ /// The actions of the tests whose range starts on the 1-based `line` of the active editor's file.
+ pub(super) fn test_gutter_actions(&mut self, line: u32, window: &Window) -> Vec<MenuAction> {
+ let Some(path) = self.editors.active().map(|editor| editor.document().path.to_string_lossy().into_owned()) else { return Vec::new() };
+ match self.tests_at_line(&path, line).as_slice() {
+ [] => Vec::new(),
+ [test] => self.test_context_menu_actions(test, window),
+ tests => self.multi_test_context_menu_actions(tests, window),
+ }
+ }
+
+ /// `getTestContextMenuActions`, but Peek Error, as the port has no testingOutputPeek.ts.
+ fn test_context_menu_actions(&mut self, id: &str, window: &Window) -> Vec<MenuAction> {
+ let capabilities = self.test_capabilities(id);
+ let mut actions = Vec::new();
+ for (group, title) in [(GROUP_RUN, "Run Test"), (GROUP_DEBUG, "Debug Test"), (GROUP_COVERAGE, "Run with Coverage")] {
+ if capabilities & group != 0 {
+ actions.push(self.gutter_action(title, "vscode.runTestsById", vec![json!(group), json!(id)]));
+ }
+ }
+ if capabilities & HAS_NON_DEFAULT_PROFILE != 0 {
+ actions.push(self.gutter_action("Execute Using Profile...", "testing.runUsing", vec![json!(id)]));
+ }
+ if self.testing.state_of(id) == Some(ResultState::Running) {
+ actions.push(self.gutter_action("Cancel Test Run", "testing.cancelRun", Vec::new()));
+ }
+ actions.push(self.gutter_action("Reveal in Test Explorer", "_revealTestInExplorer", vec![json!(id)]));
+ // `getContributedTestActions`: `MenuId.TestItemGutter` with the test as its argument.
+ let context = self.test_item_context(id, window);
+ let contributed = menu_actions(&self.menus, MenuId::TestItemGutter, &context);
+ let arg = self.test_item_arg(id);
+ if !contributed.is_empty() {
+ actions.push(MenuAction::Separator);
+ }
+ for action in contributed {
+ let action = self.forward_with_arg(action, &arg);
+ actions.push(action);
+ }
+ actions
+ }
+
+ /// `MultiRunTestDecoration.getContextMenuActions`: the groups any of the tests can run in, then a submenu per test
+ /// labeled by its parents until the labels differ, sorted by sortText or label.
+ fn multi_test_context_menu_actions(&mut self, tests: &[String], window: &Window) -> Vec<MenuAction> {
+ let mut actions = Vec::new();
+ for (group, title) in [(GROUP_RUN, "Run All Tests"), (GROUP_COVERAGE, "Run All Tests with Coverage"), (GROUP_DEBUG, "Debug All Tests")] {
+ if tests.iter().any(|id| self.test_capabilities(id) & group != 0) {
+ let mut args = vec![json!(group)];
+ args.extend(tests.iter().map(|id| json!(id)));
+ actions.push(self.gutter_action(title, "vscode.runTestsById", args));
+ }
+ }
+ let items = &self.testing.collection.items;
+ let label_of = |id: &str| items.get(id).map_or(String::new(), |test| test.label().to_owned());
+ let mut labeled: Vec<(String, Option<&str>, &String)> = tests.iter().map(|id| (label_of(id), parent_id(id), id)).collect();
+ let mut has_parent = true;
+ while has_parent {
+ let conflicts: Vec<usize> = (0..labeled.len()).filter(|&index| labeled.iter().filter(|(label, ..)| *label == labeled[index].0).count() > 1).collect();
+ if conflicts.is_empty() {
+ break;
+ }
+ for index in conflicts {
+ let (label, parent, _) = &mut labeled[index];
+ match parent {
+ Some(id) => {
+ *label = format!("{} > {label}", label_of(id));
+ *parent = parent_id(id);
+ }
+ None => has_parent = false,
+ }
+ }
+ }
+ let sort_key = |id: &str| items.get(id).map_or(String::new(), |test| test.item["sortText"].as_str().unwrap_or(test.label()).to_owned());
+ labeled.sort_by(|a, b| crate::command_palette::locale_compare(&sort_key(a.2), &sort_key(b.2)));
+ let labeled: Vec<(String, String)> = labeled.into_iter().map(|(label, _, id)| (label, id.clone())).collect();
+ if !actions.is_empty() && !labeled.is_empty() {
+ actions.push(MenuAction::Separator);
+ }
+ // shortcut: no `MAX_TESTS_IN_SUBMENU` (30) overflow item with its pick, until a line holds more tests.
+ for (label, id) in labeled {
+ let stripped = crate::command_palette::strip_icons(&label);
+ let title = stripped.split('\n').next().unwrap_or_default().to_owned();
+ let submenu = self.test_context_menu_actions(&id, window);
+ actions.push(MenuAction::Submenu { title, actions: submenu, checked: false });
+ }
+ actions
+ }
+
+ /// An item running `command` with `args`, registered under an id of its own since the gutter's menu passes every
+ /// item the line's `{ lineNumber, uri }`.
+ fn gutter_action(&mut self, title: &str, command: &str, args: Vec<Value>) -> MenuAction {
+ MenuAction::Command { id: self.gutter_command(command, args), title: title.into(), enabled: true, checked: false, alt: None }
+ }
+
+ fn gutter_command(&mut self, command: &str, args: Vec<Value>) -> String {
+ let id = format!("_testing.gutter:{command}:{}", Value::from(args.clone()));
+ if self.commands.get(&id).is_none() {
+ let command = command.to_owned();
+ self.commands.register(id.clone(), move |workbench, _, window, cx| workbench.execute_command(&command, args.clone(), window, cx));
+ }
+ id
+ }
+
+ /// `shouldForwardArgs` with `arg`: a contributed item and its alternative run with the test.
+ fn forward_with_arg(&mut self, action: MenuAction, arg: &Value) -> MenuAction {
+ match action {
+ MenuAction::Command { id, title, enabled, checked, alt } => {
+ let alt = alt.map(|(alt_id, alt_title)| (self.gutter_command(&alt_id, vec![arg.clone()]), alt_title));
+ MenuAction::Command { id: self.gutter_command(&id, vec![arg.clone()]), title, enabled, checked, alt }
+ }
+ MenuAction::Submenu { title, actions, checked } => MenuAction::Submenu { title, actions: actions.into_iter().map(|action| self.forward_with_arg(action, arg)).collect(), checked },
+ MenuAction::Separator => MenuAction::Separator,
+ }
+ }
+}
+
+#[cfg(test)]
+mod tests;
diff --git a/native/crates/app/src/workbench/testing_gutter/tests.rs b/native/crates/app/src/workbench/testing_gutter/tests.rs
new file mode 100644
index 00000000000..59c0e1f97a3
--- /dev/null
+++ b/native/crates/app/src/workbench/testing_gutter/tests.rs
@@ -0,0 +1,134 @@
+use std::cell::RefCell;
+use std::path::Path;
+use std::rc::Rc;
+use std::sync::mpsc::Receiver;
+use std::sync::{Arc, Mutex};
+
+use gpui::{TestAppContext, VisualTestContext, point, px};
+use serde_json::{Value, json};
+
+use crate::commands::Outcome;
+use crate::host_sync::HostMessage;
+use crate::menus::{Entry, MenuAction, MenuId, MenuItem};
+use crate::testing::{GROUP_DEBUG, GROUP_RUN, Profile};
+use crate::workbench::Workbench;
+use crate::workspace_trust::{Startup, WorkspaceTrust};
+
+fn profile(profile_id: i64, label: &str, group: u64, is_default: bool) -> Profile {
+ Profile { controller_id: "c".into(), profile_id, label: label.into(), group, is_default, tag: None, supports_continuous_run: false, has_configuration_handler: false }
+}
+
+fn contributed(menu: MenuId, command: &str, title: &str) -> MenuItem {
+ MenuItem { menu, entry: Entry::Command { id: command.into(), precondition: None, toggled: None, alt: None }, title: title.into(), group: String::new(), order: 0., when: None }
+}
+
+/// A workbench with `test.js` open and the tests `(id, label, line)` of controller `c` in it.
+fn workbench_with_tests<'a>(name: &str, tests: &[(&str, &str, u32)], cx: &'a mut TestAppContext) -> (gpui::Entity<Workbench>, &'a mut VisualTestContext, Receiver<HostMessage>) {
+ 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 dir = std::env::temp_dir().join(format!("code-gpui-{name}-{}", std::process::id()));
+ let _ = std::fs::remove_dir_all(&dir);
+ std::fs::create_dir_all(&dir).unwrap();
+ let file = dir.join("test.js");
+ std::fs::write(&file, "test('t', () => {});\n\ntest('u', () => {});\n").unwrap();
+ let (sender, host) = std::sync::mpsc::channel();
+ let tests: Vec<(String, String, u32)> = tests.iter().map(|(id, label, line)| (id.to_string(), label.to_string(), *line)).collect();
+ let (workbench, cx) = cx.add_window_view(|window, 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);
+ workbench.open_file(file.clone(), true, window, cx);
+ let uri = workbench.editors.active().unwrap().document().uri();
+ let mut ops = vec![json!({ "op": 0, "item": { "expand": 0, "item": { "extId": "c", "label": "c", "tags": [] } } })];
+ for (id, label, line) in &tests {
+ let range = json!({ "startLineNumber": line, "startColumn": 1, "endLineNumber": line, "endColumn": 2 });
+ let item = if *line == 0 { json!({ "extId": id, "label": label, "tags": [] }) } else { json!({ "extId": id, "label": label, "tags": [], "uri": uri, "range": range }) };
+ ops.push(json!({ "op": 0, "item": { "expand": 0, "item": item } }));
+ }
+ workbench.testing.collection.apply(&ops);
+ workbench.testing.profiles = vec![profile(1, "Run", GROUP_RUN, true), profile(2, "Run Slow", GROUP_RUN, false), profile(3, "Debug", GROUP_DEBUG, true)];
+ workbench
+ });
+ cx.run_until_parked();
+ std::fs::remove_dir_all(dir).unwrap();
+ (workbench, cx, host)
+}
+
+fn titles(actions: &[MenuAction]) -> Vec<String> {
+ actions
+ .iter()
+ .map(|action| match action {
+ MenuAction::Command { title, .. } => title.clone(),
+ MenuAction::Submenu { title, .. } => format!("{title} >"),
+ MenuAction::Separator => "---".into(),
+ })
+ .collect()
+}
+
+fn command_titled(actions: &[MenuAction], wanted: &str) -> String {
+ actions.iter().find_map(|action| match action {
+ MenuAction::Command { id, title, .. } if title == wanted => Some(id.clone()),
+ _ => None,
+ }).unwrap_or_else(|| panic!("no {wanted} in {:?}", titles(actions)))
+}
+
+/// testingDecorations.ts `getTestContextMenuActions` in editorLineNumberMenu.ts's menu: the test's actions, its
+/// `testing/item/gutter` items with the test as argument, then the `editor/lineNumber/context` items. The test's items
+/// run on it, not on the line's `{ lineNumber, uri }`.
+#[gpui::test]
+fn the_gutter_menu_shows_the_tests_actions_before_the_line_number_items(cx: &mut TestAppContext) {
+ let (workbench, cx, host) = workbench_with_tests("test-gutter-menu", &[("c\0t", "t", 1)], cx);
+ let received = Rc::new(RefCell::new(Vec::new()));
+ let sink = received.clone();
+ workbench.update(cx, |workbench, _| {
+ workbench.menus.push(contributed(MenuId::TestItemGutter, "ext.gutter", "Ext Gutter"));
+ workbench.menus.push(contributed(MenuId::EditorLineNumberContext, "ext.line", "Ext Line"));
+ workbench.commands.register("ext.gutter", move |_, args, _, _| {
+ sink.borrow_mut().push(args);
+ Outcome::done()
+ });
+ });
+
+ let actions = workbench.update_in(cx, |workbench, window, cx| {
+ workbench.show_line_number_context_menu(0, point(px(10.), px(40.)), false, window, cx);
+ workbench.context_menu.as_ref().expect("a context menu shows").levels[0].actions.clone()
+ });
+ assert_eq!(titles(&actions), ["Run Test", "Debug Test", "Execute Using Profile...", "Reveal in Test Explorer", "---", "Ext Gutter", "---", "Ext Line"]);
+
+ workbench.update_in(cx, |workbench, window, cx| {
+ workbench.hide_context_menu(window, cx);
+ let line_arg = vec![json!({ "lineNumber": 1 })];
+ drop(workbench.execute_command(&command_titled(&actions, "Ext Gutter"), line_arg.clone(), window, cx));
+ drop(workbench.execute_command(&command_titled(&actions, "Run Test"), line_arg, window, cx));
+ });
+ cx.run_until_parked();
+ let tests_of = |args: &Value| args["tests"].as_array().unwrap().iter().map(|test| test["item"]["extId"].clone()).collect::<Vec<_>>();
+ assert_eq!(received.borrow().iter().map(|args| tests_of(&args[0])).collect::<Vec<_>>(), [vec![json!("c\0t")]]);
+ let runs: Vec<_> = host.try_iter().filter(|message| message.method == "$runControllerTests").map(|message| message.args[0][0]["testIds"].clone()).collect();
+ assert_eq!(runs, [json!(["c\0t"])]);
+}
+
+/// `MultiRunTestDecoration.getContextMenuActions`: the groups for all of the line's tests, then a submenu per test,
+/// labeled with its parents while two labels are the same.
+#[gpui::test]
+fn a_line_with_two_tests_shows_run_all_and_a_submenu_per_test(cx: &mut TestAppContext) {
+ let (workbench, cx, _host) = workbench_with_tests("test-gutter-multi", &[("c\0u", "u", 0), ("c\0s", "s", 0), ("c\0u\0t", "t", 3), ("c\0s\0t", "t", 3)], cx);
+ let actions = workbench.update_in(cx, |workbench, window, _| workbench.test_gutter_actions(3, window));
+ assert_eq!(titles(&actions), ["Run All Tests", "Debug All Tests", "---", "s > t >", "u > t >"]);
+ let MenuAction::Submenu { actions: submenu, .. } = &actions[3] else { panic!("a submenu per test") };
+ assert_eq!(titles(submenu), ["Run Test", "Debug Test", "Execute Using Profile...", "Reveal in Test Explorer"]);
+}
+
+/// testing.contribution.ts `_revealTestInExplorer`: the test's parents expand and the Testing view opens.
+#[gpui::test]
+fn reveal_in_test_explorer_expands_the_tests_parents(cx: &mut TestAppContext) {
+ let (workbench, cx, _host) = workbench_with_tests("test-gutter-reveal", &[("c\0s", "s", 0), ("c\0s\0t", "t", 1)], cx);
+ let expanded = workbench.update_in(cx, |workbench, window, cx| {
+ drop(workbench.execute_command("_revealTestInExplorer", vec![json!("c\0s\0t")], window, cx));
+ let mut expanded: Vec<String> = workbench.testing_view.expanded.iter().cloned().collect();
+ expanded.sort();
+ expanded
+ });
+ assert_eq!(expanded, ["c", "c\0s"]);
+}
diff --git a/native/crates/app/src/workbench/testing_item_menu.rs b/native/crates/app/src/workbench/testing_item_menu.rs
index ee7f527bafc..5869f6299e2 100644
--- a/native/crates/app/src/workbench/testing_item_menu.rs
+++ b/native/crates/app/src/workbench/testing_item_menu.rs
@@ -17,7 +17,7 @@ use crate::testing::{GROUP_COVERAGE, GROUP_DEBUG, GROUP_RUN, Profile, ResultStat
/// marshallingIds.ts `MarshalledId.TestItemContext`.
const TEST_ITEM_CONTEXT_MID: u64 = 16;
/// testTypes.ts `TestRunProfileBitset.HasNonDefaultProfile`.
-const HAS_NON_DEFAULT_PROFILE: u64 = 1 << 4;
+pub(super) 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
@@ -117,13 +117,10 @@ impl Workbench {
let Some(test) = testing.collection.items.get(id) else { return context };
let controller = test.controller_id();
let mut all = 0;
- let mut capabilities = 0;
for profile in &testing.profiles {
all |= if all & profile.group != 0 { HAS_NON_DEFAULT_PROFILE } else { profile.group };
- if profile.controller_id == controller && profile.can_run(test) {
- capabilities |= if capabilities & profile.group != 0 { HAS_NON_DEFAULT_PROFILE } else { profile.group };
- }
}
+ let capabilities = self.test_capabilities(id);
let supports_continuous = testing.profiles.iter().any(|profile| profile.controller_id == controller && profile.supports_continuous_run && profile.can_run(test));
let refreshable = testing.controllers.get(controller).is_some_and(|controller| controller.capabilities & 2 != 0);
let state = match testing.state_of(id).unwrap_or_default() {
@@ -168,6 +165,18 @@ impl Workbench {
self.store_test_exclusions(cx);
}
+ /// testProfileService.ts `capabilitiesForTest` without its continuous run bit.
+ pub(super) fn test_capabilities(&self, id: &str) -> u64 {
+ let Some(test) = self.testing.collection.items.get(id) else { return 0 };
+ let mut capabilities = 0;
+ for profile in &self.testing.profiles {
+ if profile.controller_id == test.controller_id() && profile.can_run(test) {
+ capabilities |= if capabilities & profile.group != 0 { HAS_NON_DEFAULT_PROFILE } else { profile.group };
+ }
+ }
+ capabilities
+ }
+
/// 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());
diff --git a/native/crates/app/src/workbench/testing_view.rs b/native/crates/app/src/workbench/testing_view.rs
index 81859269252..fa88d3a68f0 100644
--- a/native/crates/app/src/workbench/testing_view.rs
+++ b/native/crates/app/src/workbench/testing_view.rs
@@ -102,6 +102,7 @@ impl Workbench {
self.register_testing_continuous_commands();
self.register_testing_profile_commands();
self.register_test_item_commands();
+ self.register_testing_gutter_commands();
self.register_testing_filter_commands();
self.commands.register("workbench.view.extension.test", |workbench, args, window, cx| workbench.execute_command("workbench.view.testing", args, window, cx));
for (id, group) in [("testing.runAll", GROUP_RUN), ("testing.debugAll", GROUP_DEBUG)] {
@@ -203,7 +204,7 @@ impl Workbench {
}
/// testingDecorations.ts: the tests whose range starts on the line; the innermost at the cursor runs.
- fn tests_at_line(&self, path: &str, line: u32) -> Vec<String> {
+ pub(super) fn tests_at_line(&self, path: &str, line: u32) -> Vec<String> {
let mut ids: Vec<String> = self.testing.collection.tests_in_file(path).filter(|item| item.start_line() == Some(line)).map(|item| item.id.clone()).collect();
ids.sort();
ids
@@ -479,8 +480,19 @@ impl Workbench {
self.select_range(&path, crate::anything_quick_access::TextRange { start_line_number: line, start_column: column, end_line_number: line, end_column: column }, cx);
}
+ /// Expands the rows above the test, as the explorer does to show it.
+ pub(super) fn expand_test_ancestors(&mut self, id: &str) {
+ let mut parent = crate::testing::parent_id(id);
+ while let Some(ancestor) = parent {
+ self.testing_view.collapsed.remove(ancestor);
+ self.testing_view.expanded.insert(ancestor.to_owned());
+ parent = crate::testing::parent_id(ancestor);
+ }
+ }
+
/// testingDecorations.ts `RunTestDecoration` glyph of the line: the tests starting there, the worst state of
- /// them, a run icon while none ran. A click runs them with `testing.defaultGutterClickAction`.
+ /// them, a run icon while none ran. A click runs them with `testing.defaultGutterClickAction` (Alt runs the
+ /// alternate group), or shows the line's menu as a right click does.
pub(super) fn test_glyph(&self, editor: &OpenEditor, line: u32, cx: &mut Context<Self>) -> Option<gpui::AnyElement> {
if self.setting("testing.gutterEnabled") == false || editor.document().scheme != "file" {
return None;
@@ -497,10 +509,8 @@ impl Workbench {
state => state_icon(state),
};
let color: Rgba = self.foreground_or(color);
- let group = match self.setting("testing.defaultGutterClickAction").as_str() {
- Some("debug") => GROUP_DEBUG,
- _ => GROUP_RUN,
- };
+ let click_action = self.setting("testing.defaultGutterClickAction");
+ let index = line as usize - 1;
Some(
div()
.absolute()
@@ -509,10 +519,27 @@ impl Workbench {
.items_center()
.justify_center()
.child(self.icon(icon, 16., 16., color))
- .on_mouse_down(MouseButton::Left, cx.listener(move |workbench, _: &MouseDownEvent, window, cx| {
+ .on_mouse_down(MouseButton::Left, cx.listener(move |workbench, event: &MouseDownEvent, window, cx| {
cx.stop_propagation();
+ // macOS takes Ctrl+click for a right click.
+ if event.modifiers.control || click_action == "contextMenu" {
+ workbench.show_line_number_context_menu(index, event.position, false, window, cx);
+ return;
+ }
+ let group = match (click_action.as_str(), event.modifiers.alt) {
+ (Some("debug"), true) => GROUP_RUN,
+ (Some("debug"), false) | (Some("runWithCoverage"), true) => GROUP_DEBUG,
+ (Some("runWithCoverage"), false) => GROUP_COVERAGE,
+ (_, true) => GROUP_DEBUG,
+ (_, false) => GROUP_RUN,
+ };
workbench.run_or_notify(&tests, group, window, cx);
}))
+ // The editor gutter's menu, before breakpointEditorContribution.ts's glyph margin handling.
+ .on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &MouseDownEvent, window, cx| {
+ cx.stop_propagation();
+ workbench.show_line_number_context_menu(index, event.position, false, window, cx);
+ }))
.into_any_element(),
)
}
diff --git a/port/ledger.md b/port/ledger.md
index 7620f87c00e..926a2eb5bb1 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -293,7 +293,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| editor/contrib/bracketMatching | src/vs/editor/contrib | M7 | verified | | brackets.rs and editor/bracket_matching.rs: match boxes with the overview ruler lane, `editor.matchBrackets` always/near/never, `editorBracketMatch.foreground` over the pair colors, Go to Bracket (Cmd+Shift+\\, Go menu), Select to Bracket (`selectBrackets` arg), Remove Brackets (Cmd+Alt+Backspace) (cargo test -p app bracket: the 7 tests of bracketMatching.test.ts); an unclosed pair ends where its parse ended (brackets::tests::an_unclosed_pair_ends_where_its_parse_ended) |
| editor/contrib/caretOperations | src/vs/editor/contrib | M8 | verified | | Move Selected Text Left/Right (palette), Transpose Letters (Ctrl+T): cargo test -p app caret_operations (moveCarretCommand.test.ts); ui-pair notes.txt Ctrl+T and both palette actions |
| editor/contrib/clipboard | src/vs/editor/contrib | M5 | verified | | Cut, Copy, Paste and Copy with Syntax Highlighting (editor/clipboard.rs, workbench/editor_commands.rs): `editor.emptySelectionClipboard`, `copyWithSyntaxHighlighting` HTML, `multiCursorPaste`, column block copy and paste; ui-pair text and HTML byte-identical with the reference (port/results/clipboard.md); cargo test -p app clipboard 18 passed; Cmd+C/X/V with whole-line copy metadata: cargo test -p app keys_and_typed_text_edit_the_focused_editor_and_reach_the_host |
-| editor/contrib/codeAction | src/vs/editor/contrib | M13 | verified | | workbench/code_actions.rs and the action widget view workbench/action_widget.rs: automatic requests and the light bulb, Cmd+. and the kind commands with auto apply, the grouped menu, the marker hover's Quick Fix..., `_executeCodeActionProvider`: cargo test -p app code_actions. The widget takes the focus, typed keys navigate its list and it hides on blur: cargo test -p app the_action_widget_takes_the_keys_and_hides_on_blur. The marker hover's AI entry and menu actions are removed by decision (port/notes.md "Copilot Chat"). The whole workspace edit applies, through the Refactor Preview for `previewSelectedCodeAction` and edits that need confirmation; ui-pair steps-params-actions.json (port/results/language-features.md): the Cmd+. menu matches |
+| editor/contrib/codeAction | src/vs/editor/contrib | M13 | ported | [3 S] code_actions.rs: with the cursor on line 1 of port/fixtures/debug-node/math.test.js the port draws a light bulb over the test run glyph in the glyph margin, where the reference draws none (ui-pair with tests-provider; source not traced, lightBulbWidget.ts moves the bulb off a glyph margin line with other decorations) | workbench/code_actions.rs and the action widget view workbench/action_widget.rs: automatic requests and the light bulb, Cmd+. and the kind commands with auto apply, the grouped menu, the marker hover's Quick Fix..., `_executeCodeActionProvider`: cargo test -p app code_actions. The widget takes the focus, typed keys navigate its list and it hides on blur: cargo test -p app the_action_widget_takes_the_keys_and_hides_on_blur. The marker hover's AI entry and menu actions are removed by decision (port/notes.md "Copilot Chat"). The whole workspace edit applies, through the Refactor Preview for `previewSelectedCodeAction` and edits that need confirmation; ui-pair steps-params-actions.json (port/results/language-features.md): the Cmd+. menu matches |
| editor/contrib/codelens | src/vs/editor/contrib | M13 | verified | | workbench/code_lens.rs: lenses in view zones above their lines, resolve in view, commands, `codelens.showLensesInCurrentLine`, `_executeCodeLensProvider`, `CodeLensCache` (code_lens::tests::a_model_shown_again_draws_its_cached_lenses_at_once), `editor.codeLensFontFamily` and the fade in (lenses_take_their_font_setting_and_fade_in_when_resolved), the refresh on focus (the_editor_focus_asks_for_lenses_again): cargo test -p app code_lens view_zones; merge-conflict lenses match the reference (port/results/scm.md); workbench/code_lens.rs: lenses in view zones above their lines, resolve in view, commands, `codelens.showLensesInCurrentLine`, `_executeCodeLensProvider` with cancellable requests: cargo test -p app code_lens view_zones |
| editor/contrib/colorPicker | src/vs/editor/contrib | M13 | verified | | workbench/color_detector.rs (colorDetector.ts, boxes as injected text, `editor.colorDecorators*`, `editor.defaultColorDecorators`, the 'Document Colors' debounce of language_feature_debounce.rs: color_detector::tests::the_delay_follows_the_providers_answer_time), default_document_colors.rs (defaultDocumentColorsComputer.ts), workbench/color_picker.rs (hover participant and picker widget), workbench/standalone_color_picker.rs (focus: standalone_color_picker::tests::showing_the_picker_again_focuses_it, the_focus_leaving_the_picker_hides_it): cargo test -p app default_document_colors color_picker (defaultDocumentColorProvider.test.ts cases); ui-pair port/fixtures/language-features/steps-color.json (port/results/inlay-hints.md). colorPickerPointerMonitor.test.ts (DOM pointer capture) and colorDetector.test.ts (CSS variables on the editor container) have no counterpart |
| editor/contrib/comment | src/vs/editor/contrib | M8 | verified | [scheduling L] minimap.rs:87; minimap_view.rs:432; unicode_highlight.rs:63; indentation.rs:43; comment.rs:45; smart_select.rs:292: sticky minimap sampling, worker section headers and unicode highlights, tokenizeIfCheap, the 30 ms smart select yield. Accepted as "Scheduling differences" only with a measured same result and typing on a 50k-line TS file under 16 ms per edit; otherwise class 3. Audit inputs at 5e5b1b0a915. | `editor/comment.rs`: line and block comment commands over a `CommandExecutor` port, Toggle/Add/Remove Line Comment and Toggle Block Comment with their keys, Edit menu rows and palette entries; cargo test -p app editor::comment (lineCommentCommand.test.ts, blockCommentCommand.test.ts) comment_keys menubar; ui-pair Cmd+/ and Shift+Alt+A match the reference (port/notes.md milestone 8) |
@@ -475,7 +475,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 | ported | [3 S] comment_node.rs: with a comment in edit, its reactions row sits about 3px left of the reference's (port/results/language-features.md, `steps-comment-menus.json` shot `editing`) | Done: a reply and an edit form per thread and comment, open together (commentReply.ts per CommentThreadWidget): cargo test -p app two_threads_keep_their_reply_forms_open_together; a zone sized by the drawn comment bodies: cargo test -p app a_wrapped_comment_body_grows_its_zone; next/previous thread and Focus Comment on Current Line focus the thread's comments (`commentFocused`, Up/Down between comments, Escape collapses and selects the range): cargo test -p app the_reached_thread_takes_the_focus. Done in diff editors: glyphs, commenting ranges (asked for every side of every multi diff file), range highlights and zones on both sides of the diff editor and of each multi diff file, the other side aligned by a diagonal fill (workbench/editor_view/diff_editor_view.rs, multi_diff_editor_view.rs, diff_editor.rs `additional_heights`): cargo test -p app diff comment; ui-pair `portComments.openDiff` modified, original and multi. Floating widgets on a diff's original side and on both sides of each multi diff file (comment_thread_floating.rs `FloatingHost`, multi_diff_editor_view.rs `multi_diff_floating_hosts`), with `FloatingWidgetRoom` growing a file below its last line (commentThreadFloatingWidgetRoom.ts, `FileDiff.room`): cargo test -p app floating room multi_diff; ui-pair `portComments.openDiff` original and multi with the floating style. Range decorations (commentThreadRangeDecorator.ts and the floating empty-range line, workbench/comment_thread_widget.rs `comment_range_highlights`): cargo test -p app comment_thread_floating. The floating thread style (`comments.thread.experimental.style: floating`; workbench/comment_thread_floating_layout.rs with commentThreadFloatingWidget.test.ts ported, workbench/comment_thread_floating.rs: placement beside the code or its lines in code order, the outline and connector, title drag, edge resize, double-click reset, the layout kept per thread, wheel to the editor): cargo test -p app comment_thread_floating, ui-pair steps-comment-floating.json (port/results/language-features.md Floating comment threads). Done: the Comments panel (workbench/comments_view.rs: resources, threads with author, relative time, first line, range and replies, the unresolved badge, a markdown preview's images as "Image: {alt}" (cargo test -p app a_markdown_comment_previews_its_first_rendered_block), the filter box with Show Resolved/Unresolved and Sort By, its history in the memento's `filterHistory`, Escape and Cmd+Down while `commentsFilterFocus` (cargo test -p app the_filter_keeps_its_history_and_escape_clears_it; no match highlights, as commentsTreeViewer.ts's renderers ignore the filter data), Collapse/Expand All, row selection and keys; hideIfEmpty; a thread row's `commentsView/commentThread/context` inline actions and context menu with the built-in Reply, which reveals the thread with its zone expanded and reply open: cargo test -p app the_thread_menu_replies_to_the_thread), the gutter glyph that toggles the thread (workbench/editor_view/comment_glyph.rs) and the thread widget (workbench/comment_thread_widget.rs: zone, state colors, head with `comments/commentThread/title` actions and Collapse, markdown comments with `code` spans on no `textCodeBlock.background` (cargo test -p app a_comment_s_code_span_draws_no_code_block_background), reply form with `comments/commentThread/context` buttons and Cmd+Enter, the `comments/commentThread/additionalActions` bar under the body (commentThreadAdditionalActions.ts: separator, secondary buttons, a submenu as ButtonWithDropdown, at most 4, in the zone height and the floating widths): cargo test -p app additional_actions_show_under_the_body_and_run_with_the_thread; ui-pair steps-comment-additional.json), each comment (workbench/comment_node.rs: `comments/comment/title` actions, edit mode with `comments/comment/context` buttons, reactions and their picker), commenting ranges with the add glyph, Add Comment and template threads (workbench/commenting_ranges.rs), the comment commands (workbench/comment_navigation.rs: Collapse/Expand All, Expand Unresolved, Toggle Editor Commenting, Focus Comment on Current Line, Dismiss Comment, next/previous thread, commented range and commenting range, reached at the provider's columns unless it holds the cursor: cargo test -p app a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor) and the comments accessibility help: cargo test -p app comment; ui-pair port/results/language-features.md (Comments, Comment editing and commands); Escape keeps a new template open as the reference does (ui-pair steps-comment-escape-typed.json, cargo test -p app dismissing_a_new_template_keeps_it_open). The reply and edit inputs are code editors (simpleCommentEditor.ts: a `comment`-scheme markdown model, word wrap, no glyph margin, line numbers or folding, `scrollBeyondLastLine` false, 5 to 25 lines by `calculateEditorHeight`) that take the focus with `commentEditorFocused`, Cmd+Enter submits and Escape hides; the host gets the input's document and no text editor (workbench/comment_thread_widget.rs `open_comment_editor`, workbench/editor.rs `comment_editor`): cargo test -p app an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions; ui-pair steps-comment-reply-editor.json (reply-empty, reply-lines, reply-grown). Comments panel rows: 4px pane inset, 4px radius and the tree's indent guides as the Problems tree (cargo test -p app rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides; ui-pair steps-comments.json: chevron, name and thread line at the reference's x and y) |
| workbench/contrib/customEditor | workbench contribution | M17 | verified | | Each editor of a custom text editor's resource, the one opened in another group and a split's copy, has a webview of its own (customEditorInput.ts: cargo test -p app each_group_s_custom_text_editor_has_its_own_webview); Opening a custom text editor with `options.selection` reveals it in the panel and leaves the text model's cursor (cargo test -p app a_custom_text_editor_s_navigation_drives_the_outline); A custom document open in another group moves to the active one, or with `supportsMultipleEditorsPerDocument` gets a second editor there (editorResolverService.ts `moveExistingEditorForResource`: cargo test -p app 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); `workbench.editorAssociations` merged as editorResolverService.ts `getAllUserAssociationsForSetting`: the workspace's globs before the default's and user's (cargo test -p app a_workspace_association_wins_over_a_user_one_of_the_same_length); Reopen Editor With puts a closed custom or notebook editor's replacement in its place, pinned (editorGroupView.ts `replaceEditors`: cargo test -p app a_reopened_preview_keeps_its_tab_position); Two default editors for one resource warn once and remember the choice per extension glob (editorResolverService.ts `doHandleConflictingDefaults`: cargo test -p app two_default_editors_for_a_resource_ask_once_which_to_keep); the memento's custom editors until the extensions register (cargo test -p app markdown_editor_files_offer); editor resolution by `workbench.editorAssociations` and contributed selectors (editorResolverService.ts ranks), Reopen Editor With picker (`reopenActiveEditorWith`, `workbench.action.reopenWithEditor`), `_workbench.open`, `_workbench.openWith`; `FIXTURE=custom-editor-tests port/tools/webview-check` 8/8; cargo test -p app custom_editors |
-| workbench/contrib/debug | workbench contribution | M16 | ported | [3 S] breakpoint_widget.rs:246: a breakpoint on the stopped line draws the full breakpoint circle inside the stack frame outline where debug.contribution.css's `--vscode-icon-debug-stackframe-dot` overlay draws a small dot (ui-pair `debug/call-stack-menu.json` stopped.png, line 5) <br> [3 S] debug: the Run and Debug activity item shows no badge while stopped where the reference shows "1" (ui-pair `debug/call-stack-menu.json` stopped.png; its source not traced) <br> [3 M] variable_menu.rs: no View Binary Data: debug.contribution.ts registers it only in the rows' `inline` group, and the port's Variables, Watch and hover rows have no inline action bar, no `vscode-debug-memory` file system and no hex editor install prompt (variablesView.ts `VIEW_MEMORY_ID`) <br> [3 S] debug status bar: the debug entry reads "Launch server.js" where the reference reads "Launch server.js (debug-node)" (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] debug: while stopped the panel shows a Problems tab beside Debug Console where the reference shows Debug Console alone (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] variable_menu.rs: Copy Value, Copy Expression, Edit Expression and Remove Expression from their keys (Cmd+C, Cmd+Alt+C, Enter, Cmd+Backspace in the views) do nothing: the views keep no tree selection to act on <br> [3 S] variable_menu.rs: a Variables row's menu passes `container` as `{ variablesReference }` only, where variablesView.ts `getVariablesContext` passes the scope's or parent variable's protocol object <br> [3 L] debug visualizers: debugVisualizers.ts, `VisualizedExpression` rows in the Variables view and the hover not ported <br> [3 S] lazy variables: the port's side of ui-pair `debug/lazy-variable.json` eye-hover.png, the eye button's "Click to expand" hover over the debug hover, not yet taken (the Studio's GUI lane stopped at a system prompt); a gpui test covers it <br> [3 S] debug_hover.rs: the hover's find widget starts about 20px right of the reference's and is narrower, and a name matching the find draws on a red box where the reference only recolors it (ui-pair `debug/hover-find.json` hover-find.png) <br> [3 S] debug_view.rs: the Run and Debug container title reads "Run and De..." where the reference reads "Run And D..." (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] view_visibility.rs: the Run and Debug container's `...` menu has no "Debug Console" item and separator above the view toggles, and its button shows no pressed background while the menu is open (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 M] debug_toolbar.rs: debugToolBar.ts's Focus Session select box (`FocusSessionActionViewItem`, `multiSessionDebug`), the Stop button's `MenuId.DebugToolBarStop` dropdown, Alt over Stop or Disconnect showing its alt command, the docked toolbar in the Run and Debug title (`debug.toolBarLocation` docked) and the Command Center's Debug submenu (`commandCenter`) are not drawn <br> [3 S] debug_service.rs: `guess_debugger`'s Select Debugger picker has no "More {0} options..." picks of the dynamic configuration providers (debugAdapterManager.ts `getDynamicProviders`), which the port does not have <br> [3 S] debugQuickAccess.ts: the picker has no dynamic configuration providers' `{label}...` picks with the `contributed` description, where the reference lists `Node.js...` (ui-pair `debug/quick-access.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] debug_service.rs: a stop opens the Run and Debug view for any reason, where debugSession.ts opens it only for `reason === 'breakpoint'`: at the `debugger;` of port/fixtures/debug-node/lazy.js the reference stays on the Explorer (ui-pair `debug/lazy-variable.json`) <br> [3 S] debug_view.rs: scope rows (`Local: main`, `Global`) draw in the regular weight where debugViewlet.css `.debug-pane .scope` sets bold (ui-pair `debug/variables-menu.json`) <br> [3 M] debug_editor: the stopped line has no `debug-top-stack-frame-column` inline arrow before the frame's column (callStackEditorContribution.ts `makeStackFrameColumnDecoration`) and no inline breakpoint candidate dots (breakpointEditorContribution.ts, `breakpointLocations` request), and the glyph of a breakpoint the frame stops on draws a red filled shape where the reference draws the yellow outlined stack frame with a small red dot (ui-pair `debug/variables-menu.json`, line 5 of app.js) <br> [3 S] debug_toolbar.rs: the floating toolbar draws at the window's top over the title bar where the reference's sits below it over the editor tabs (ui-pair `debug/variables-menu.json`) | ui-pair port/fixtures/debug-node: gutter breakpoint, F5 stops at it, Variables (Local: main), Call Stack with folded deemphasized frames, Breakpoints, Debug Console REPL, toolbar, status bar entry; cargo test -p app debug; the launch picker shrinks to an ellipsis beside a `flex: 1` title (cargo test -p app launch_picker_shrinks; ui-pair menus/view-container-title.json); the container's `...` menu opens below the button, left aligned in a left side bar (cargo test -p app the_debug_container_more_actions); Select Debugger groups the Suggested debuggers and ends with Install, and a file without a debugger offers to find one (cargo test -p app debug_service); own getters come as lazy rows whose `$(eye)` button matches the reference's (ui-pair `debug/lazy-variable.json` hover.png), and the workbench hover draws over the debug hover (cargo test -p app a_workbench_hover_draws_over_the_debug_hover); a complex hover's tree height counts the editor's top in its group, six rows above line 3 of app.js as the reference (cargo test -p app the_tree_height_keeps_an_above_hover_off_the_hovered_line; ui-pair `debug/hover-find.json`); Call Stack frame names, Variables, Watch and hover rows' expression labels in 11px Menlo (cargo test -p app watch_expression_labels_use_the_monospace_font; ui-pair `debug/call-stack-menu.json` stopped.png); Breakpoints header `$(warning)` hint for the debugger's `strings.unverifiedBreakpoints` after breakpointsView.ts's 4s `hintDelayer`, restarted by every breakpoint change (cargo test -p app debug_view; ui-pair port/fixtures/ui-pair/debug/unverified-breakpoints.json with js-debug's unbound math.test.js breakpoint); preLaunchTask, postDebugTask, compound preLaunchTask and the restart tasks through debugTaskRunner.ts's runner with `debug.onTaskErrors`, the remembered task error choice and the slow task notification (cargo test -p app debug_task_runner); Run to Cursor's temporary breakpoint with debugService.ts `runTo`'s 2s verification wait, thread choice from the sessions that verified it, and removal at the next stop or session end (cargo test -p app debug_commands); Debug Console output styled by its SGR sequences with the theme's ANSI colors at contrast 4 (cargo test -p app debug_console debug::ansi); Debug Console filter box (replFilter.ts terms, "Showing N of M" badge, Cmd+F `repl.action.filter`, value and history in workspace storage) and session picker (consoles of the sessions with `hasSeparateRepl`, `mergeWithParent` children in the parent's, selection focuses the session or its stopped child), input history in workspace storage (`debug.repl.history`) (cargo test -p app debug_console); ended sessions stay inactive in the console picker with their output until Clear Console or a start of the same configuration (debugModel.ts `addSession`, repl.ts `sessionsToIgnore`; cargo test -p app an_ended_session_stays_in_the_picker_until_cleared_or_started_again); debugUtils.ts `saveAllBeforeDebugStart` before a start (not for a child session or with `suppressSaveBeforeStart`) and a restart, by `debug.saveBeforeStart` (cargo test -p app a_start_or_restart_saves_the_dirty_editors); triggered breakpoints: debugSession.ts `enableDependentBreakpoints` by `hitBreakpointIds` or the top frame's position sets `sessionsDidTrigger` and sends the files again, continue and the steps wait for it up to 1.5 s (`waitForTriggeredBreakpoints`), a restart clears it (cargo test -p app a_hit_breakpoint_enables_its_dependents); `debug.inlineValues` after the focused frame's lines: the `InlineValuesProvider`s' values (`$provideInlineValues`) or the most specific scopes' variables named on each line, their `formatHoverContent` hover, the 100ms removal on continue (cargo test -p app debug_inline_values); debugHover.ts in place of the editor hover while a frame is focused in the file: the `$provideEvaluatableExpression` range or the dotted path under the mouse, `hover` evaluation or the scopes' variable, Cmd+K Cmd+I focused, Alt for the editor hover, the tree's list keys, Alt+click and Alt+Space toggling the loaded subtree (abstractTree.ts `onSpace`: cargo test -p app alt_click_toggles_the_loaded_subtree), a row click's tree focus, selection and twistie toggle (abstractTree.ts `onViewPointer`: cargo test -p app a_click_on_a_hover_row_focuses_the_tree) and `layoutTree` height, the glyph margin's lockout release, the caret edge nearer the mouse, lazy rows' `$(eye)` button (baseDebugView.ts `lazyButton`, `debug.autoExpandLazyVariables`; cargo test -p app a_lazy_row_takes_its_value_from_the_eye_button), the tree's find widget (abstractTree.ts `FindController`: cargo test -p app the_find_widget_filters_the_hover_tree; ui-pair port/fixtures/ui-pair/debug/hover-find.json) (cargo test -p app debug_hover; ui-pair port/fixtures/debug-node `greeting` and `numbers` hovers); disassemblyView.ts: the `disassemble` requests around the focused frame's instruction pointer, the glyph click's instruction breakpoint (`setInstructionBreakpoints`), the Breakpoints view's instruction rows, `instruction` stepping granularity while the view is active, the table's focus on reload, the list keys' focus, selection and clear, Page Up/Down over the rows' own heights, the hover column border (cargo test -p app disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints); Call Stack: js-debug's compact child session merged into its parent's row with modernUI's capitalized state label, the folded frames' common source `origin` (callStackView.ts `CallStackCompressionDelegate`, `ShowMoreRenderer`: cargo test -p app debug_view), the frame's `line:column` count badge and the trees' list focus a right click moves to them (cargo test -p app a_right_clicked_call_stack_row_takes_the_list_focus); the floating toolbar from `MenuId.DebugToolBar` with the extensions' `debug/toolBar` items, and `debug/createConfiguration` items in Select Debugger (cargo test -p app the_debug_toolbar_and_create_configuration_menus_take_contributed_items; ui-pair port/fixtures/ui-pair/debug/call-stack-menu.json); Variables, Watch and hover row context menus (debug.contribution.ts `DebugVariablesContext`, `DebugWatchContext`, `DebugHoverContext`, watchExpressionsView.ts Copy Expression and Copy All, Set Value through `setVariable` or `setExpression` with the adapter's error under the input, Break on Value Read/Change/Access from the `dataBreakpointInfo` answer: cargo test -p app variable_menu; ui-pair port/fixtures/ui-pair/debug/variables-menu.json); a stop reveals its line centered only when outside the view, after the editor's first layout (debugSource.ts `openInEditor` `CenterIfOutsideViewport`: cargo test -p app a_stop_on_a_line_in_view_keeps_the_scroll; ui-pair port/fixtures/ui-pair/debug/lazy-variable.json); debugQuickAccess.ts `debug ` picks: the launch configurations by folder with Most Recent, their gear to launch.json, Add Configuration..., and Debug: Select and Start Debugging opening it (cargo test -p app the_debug_picker_lists_and_starts_the_launch_configurations; ui-pair port/fixtures/ui-pair/debug/quick-access.json); the first cheap scope expands on a focus change only once the Variables view has shown, as variablesView.ts `renderBody` sets its first input unexpanded (cargo test -p app the_first_scope_expands_only_once_the_variables_view_exists; ui-pair port/fixtures/ui-pair/debug/variables-menu.json `Local: main` collapsed in both); shortcuts in port/notes.md |
+| workbench/contrib/debug | workbench contribution | M16 | ported | [3 M] breakpoint_widget.rs `show_glyph_margin_menu`: a right-click on the glyph margin shows only the breakpoint actions, where breakpointEditorContribution.ts leaves it to editorLineNumberMenu.ts `doShow`, and the line-number menu (editor_menus.rs `show_line_number_context_menu`) lacks the `2_debug` group of its gutter actions generator, so a test glyph's menu has no Add Breakpoint, Add Conditional Breakpoint..., Add Logpoint... and Add Triggered Breakpoint... below the testing items (ui-pair right-click on the run glyph of line 2 of port/fixtures/debug-node/math.test.js); the glyph menu also lacks Add Triggered Breakpoint...<br> [3 S] breakpoint_widget.rs:246: a breakpoint on the stopped line draws the full breakpoint circle inside the stack frame outline where debug.contribution.css's `--vscode-icon-debug-stackframe-dot` overlay draws a small dot (ui-pair `debug/call-stack-menu.json` stopped.png, line 5) <br> [3 S] debug: the Run and Debug activity item shows no badge while stopped where the reference shows "1" (ui-pair `debug/call-stack-menu.json` stopped.png; its source not traced) <br> [3 M] variable_menu.rs: no View Binary Data: debug.contribution.ts registers it only in the rows' `inline` group, and the port's Variables, Watch and hover rows have no inline action bar, no `vscode-debug-memory` file system and no hex editor install prompt (variablesView.ts `VIEW_MEMORY_ID`) <br> [3 S] debug status bar: the debug entry reads "Launch server.js" where the reference reads "Launch server.js (debug-node)" (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] debug: while stopped the panel shows a Problems tab beside Debug Console where the reference shows Debug Console alone (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] variable_menu.rs: Copy Value, Copy Expression, Edit Expression and Remove Expression from their keys (Cmd+C, Cmd+Alt+C, Enter, Cmd+Backspace in the views) do nothing: the views keep no tree selection to act on <br> [3 S] variable_menu.rs: a Variables row's menu passes `container` as `{ variablesReference }` only, where variablesView.ts `getVariablesContext` passes the scope's or parent variable's protocol object <br> [3 L] debug visualizers: debugVisualizers.ts, `VisualizedExpression` rows in the Variables view and the hover not ported <br> [3 S] lazy variables: the port's side of ui-pair `debug/lazy-variable.json` eye-hover.png, the eye button's "Click to expand" hover over the debug hover, not yet taken (the Studio's GUI lane stopped at a system prompt); a gpui test covers it <br> [3 S] debug_hover.rs: the hover's find widget starts about 20px right of the reference's and is narrower, and a name matching the find draws on a red box where the reference only recolors it (ui-pair `debug/hover-find.json` hover-find.png) <br> [3 S] debug_view.rs: the Run and Debug container title reads "Run and De..." where the reference reads "Run And D..." (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] view_visibility.rs: the Run and Debug container's `...` menu has no "Debug Console" item and separator above the view toggles, and its button shows no pressed background while the menu is open (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 M] debug_toolbar.rs: debugToolBar.ts's Focus Session select box (`FocusSessionActionViewItem`, `multiSessionDebug`), the Stop button's `MenuId.DebugToolBarStop` dropdown, Alt over Stop or Disconnect showing its alt command, the docked toolbar in the Run and Debug title (`debug.toolBarLocation` docked) and the Command Center's Debug submenu (`commandCenter`) are not drawn <br> [3 S] debug_service.rs: `guess_debugger`'s Select Debugger picker has no "More {0} options..." picks of the dynamic configuration providers (debugAdapterManager.ts `getDynamicProviders`), which the port does not have <br> [3 S] debugQuickAccess.ts: the picker has no dynamic configuration providers' `{label}...` picks with the `contributed` description, where the reference lists `Node.js...` (ui-pair `debug/quick-access.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] debug_service.rs: a stop opens the Run and Debug view for any reason, where debugSession.ts opens it only for `reason === 'breakpoint'`: at the `debugger;` of port/fixtures/debug-node/lazy.js the reference stays on the Explorer (ui-pair `debug/lazy-variable.json`) <br> [3 S] debug_view.rs: scope rows (`Local: main`, `Global`) draw in the regular weight where debugViewlet.css `.debug-pane .scope` sets bold (ui-pair `debug/variables-menu.json`) <br> [3 M] debug_editor: the stopped line has no `debug-top-stack-frame-column` inline arrow before the frame's column (callStackEditorContribution.ts `makeStackFrameColumnDecoration`) and no inline breakpoint candidate dots (breakpointEditorContribution.ts, `breakpointLocations` request), and the glyph of a breakpoint the frame stops on draws a red filled shape where the reference draws the yellow outlined stack frame with a small red dot (ui-pair `debug/variables-menu.json`, line 5 of app.js) <br> [3 S] debug_toolbar.rs: the floating toolbar draws at the window's top over the title bar where the reference's sits below it over the editor tabs (ui-pair `debug/variables-menu.json`) | ui-pair port/fixtures/debug-node: gutter breakpoint, F5 stops at it, Variables (Local: main), Call Stack with folded deemphasized frames, Breakpoints, Debug Console REPL, toolbar, status bar entry; cargo test -p app debug; the launch picker shrinks to an ellipsis beside a `flex: 1` title (cargo test -p app launch_picker_shrinks; ui-pair menus/view-container-title.json); the container's `...` menu opens below the button, left aligned in a left side bar (cargo test -p app the_debug_container_more_actions); Select Debugger groups the Suggested debuggers and ends with Install, and a file without a debugger offers to find one (cargo test -p app debug_service); own getters come as lazy rows whose `$(eye)` button matches the reference's (ui-pair `debug/lazy-variable.json` hover.png), and the workbench hover draws over the debug hover (cargo test -p app a_workbench_hover_draws_over_the_debug_hover); a complex hover's tree height counts the editor's top in its group, six rows above line 3 of app.js as the reference (cargo test -p app the_tree_height_keeps_an_above_hover_off_the_hovered_line; ui-pair `debug/hover-find.json`); Call Stack frame names, Variables, Watch and hover rows' expression labels in 11px Menlo (cargo test -p app watch_expression_labels_use_the_monospace_font; ui-pair `debug/call-stack-menu.json` stopped.png); Breakpoints header `$(warning)` hint for the debugger's `strings.unverifiedBreakpoints` after breakpointsView.ts's 4s `hintDelayer`, restarted by every breakpoint change (cargo test -p app debug_view; ui-pair port/fixtures/ui-pair/debug/unverified-breakpoints.json with js-debug's unbound math.test.js breakpoint); preLaunchTask, postDebugTask, compound preLaunchTask and the restart tasks through debugTaskRunner.ts's runner with `debug.onTaskErrors`, the remembered task error choice and the slow task notification (cargo test -p app debug_task_runner); Run to Cursor's temporary breakpoint with debugService.ts `runTo`'s 2s verification wait, thread choice from the sessions that verified it, and removal at the next stop or session end (cargo test -p app debug_commands); Debug Console output styled by its SGR sequences with the theme's ANSI colors at contrast 4 (cargo test -p app debug_console debug::ansi); Debug Console filter box (replFilter.ts terms, "Showing N of M" badge, Cmd+F `repl.action.filter`, value and history in workspace storage) and session picker (consoles of the sessions with `hasSeparateRepl`, `mergeWithParent` children in the parent's, selection focuses the session or its stopped child), input history in workspace storage (`debug.repl.history`) (cargo test -p app debug_console); ended sessions stay inactive in the console picker with their output until Clear Console or a start of the same configuration (debugModel.ts `addSession`, repl.ts `sessionsToIgnore`; cargo test -p app an_ended_session_stays_in_the_picker_until_cleared_or_started_again); debugUtils.ts `saveAllBeforeDebugStart` before a start (not for a child session or with `suppressSaveBeforeStart`) and a restart, by `debug.saveBeforeStart` (cargo test -p app a_start_or_restart_saves_the_dirty_editors); triggered breakpoints: debugSession.ts `enableDependentBreakpoints` by `hitBreakpointIds` or the top frame's position sets `sessionsDidTrigger` and sends the files again, continue and the steps wait for it up to 1.5 s (`waitForTriggeredBreakpoints`), a restart clears it (cargo test -p app a_hit_breakpoint_enables_its_dependents); `debug.inlineValues` after the focused frame's lines: the `InlineValuesProvider`s' values (`$provideInlineValues`) or the most specific scopes' variables named on each line, their `formatHoverContent` hover, the 100ms removal on continue (cargo test -p app debug_inline_values); debugHover.ts in place of the editor hover while a frame is focused in the file: the `$provideEvaluatableExpression` range or the dotted path under the mouse, `hover` evaluation or the scopes' variable, Cmd+K Cmd+I focused, Alt for the editor hover, the tree's list keys, Alt+click and Alt+Space toggling the loaded subtree (abstractTree.ts `onSpace`: cargo test -p app alt_click_toggles_the_loaded_subtree), a row click's tree focus, selection and twistie toggle (abstractTree.ts `onViewPointer`: cargo test -p app a_click_on_a_hover_row_focuses_the_tree) and `layoutTree` height, the glyph margin's lockout release, the caret edge nearer the mouse, lazy rows' `$(eye)` button (baseDebugView.ts `lazyButton`, `debug.autoExpandLazyVariables`; cargo test -p app a_lazy_row_takes_its_value_from_the_eye_button), the tree's find widget (abstractTree.ts `FindController`: cargo test -p app the_find_widget_filters_the_hover_tree; ui-pair port/fixtures/ui-pair/debug/hover-find.json) (cargo test -p app debug_hover; ui-pair port/fixtures/debug-node `greeting` and `numbers` hovers); disassemblyView.ts: the `disassemble` requests around the focused frame's instruction pointer, the glyph click's instruction breakpoint (`setInstructionBreakpoints`), the Breakpoints view's instruction rows, `instruction` stepping granularity while the view is active, the table's focus on reload, the list keys' focus, selection and clear, Page Up/Down over the rows' own heights, the hover column border (cargo test -p app disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints); Call Stack: js-debug's compact child session merged into its parent's row with modernUI's capitalized state label, the folded frames' common source `origin` (callStackView.ts `CallStackCompressionDelegate`, `ShowMoreRenderer`: cargo test -p app debug_view), the frame's `line:column` count badge and the trees' list focus a right click moves to them (cargo test -p app a_right_clicked_call_stack_row_takes_the_list_focus); the floating toolbar from `MenuId.DebugToolBar` with the extensions' `debug/toolBar` items, and `debug/createConfiguration` items in Select Debugger (cargo test -p app the_debug_toolbar_and_create_configuration_menus_take_contributed_items; ui-pair port/fixtures/ui-pair/debug/call-stack-menu.json); Variables, Watch and hover row context menus (debug.contribution.ts `DebugVariablesContext`, `DebugWatchContext`, `DebugHoverContext`, watchExpressionsView.ts Copy Expression and Copy All, Set Value through `setVariable` or `setExpression` with the adapter's error under the input, Break on Value Read/Change/Access from the `dataBreakpointInfo` answer: cargo test -p app variable_menu; ui-pair port/fixtures/ui-pair/debug/variables-menu.json); a stop reveals its line centered only when outside the view, after the editor's first layout (debugSource.ts `openInEditor` `CenterIfOutsideViewport`: cargo test -p app a_stop_on_a_line_in_view_keeps_the_scroll; ui-pair port/fixtures/ui-pair/debug/lazy-variable.json); debugQuickAccess.ts `debug ` picks: the launch configurations by folder with Most Recent, their gear to launch.json, Add Configuration..., and Debug: Select and Start Debugging opening it (cargo test -p app the_debug_picker_lists_and_starts_the_launch_configurations; ui-pair port/fixtures/ui-pair/debug/quick-access.json); the first cheap scope expands on a focus change only once the Variables view has shown, as variablesView.ts `renderBody` sets its first input unexpanded (cargo test -p app the_first_scope_expands_only_once_the_variables_view_exists; ui-pair port/fixtures/ui-pair/debug/variables-menu.json `Local: main` collapsed in both); shortcuts in port/notes.md |
| 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 |
@@ -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 L] testing_view.rs `test_glyph`: no gutter context menu (testingDecorations.ts `getTestContextMenuActions`: Run, Debug, Run with Coverage, Execute Using Profile..., Peek Error, Cancel Test Run, Reveal in Test Explorer, per-test submenus on a multi-test line, then `MenuId.TestItemGutter`), so `testing/item/gutter` has no menu<br>[3 S] testing_view.rs `dropdown_chevron`: the primary action and chevron take no `toolbar.activeBackground` while their dropdown is open (style.css `.monaco-dropdown.active .action-label`)<br>[3 M] testing_view.rs `testing_view_pane`: the view title is not testExplorerActions.ts's: no Show Output (`ShowMostRecentOutputAction`, `navigation`), Collapse All drawn in the title where upstream puts it in the `...` menu (`displayAction`), no `...` menu; opening the view does not focus the filter box, the "No test results yet." line is missing and file roots start expanded (ui-pair with port/fixtures/debug-node)<br>[3 M] testing_continuous.rs `testing_continuous_context`: the workbench context has only `testing.isContinuousModeOn` of testingContextKeys.ts; `testing.providerCount`, `testing.hasConfigurableProfile`, `testing.canRefreshTests`, `testing.hasAnyResults` and the rest are unset, so the Command Palette hides the `testing.providerCount > 0` commands such as Testing: Focus on Test Explorer View<br>[3 L] testing_view.rs `test_results_body`: the results list is not testResultsTree.ts (no message rows, no context menus with `MenuId.TestPeekElement` and `MenuId.TestMessageContext`) and the message view lacks testResultsViewContent.ts's `FloatingClickMenu` of `MenuId.TestMessageContent`, so `testing/item/result`, `testing/message/context` and `testing/message/content` have no menu | The view title's run and debug group dropdowns once a group has two profiles (testingExplorerView.ts `getRunGroupDropdown`, `getTestConfigGroupActions`: controller labels, `(Default)`, `MenuId.TestProfilesContext` by `testing.profile.context.group`, Select Default Profile, Configure Test Profiles; a profile runs the controller's roots; cargo test -p app the_run_group_dropdown_lists_its_profiles_and_runs_the_picked_one), Select Default Profile stores the defaults in `testingPreferredProfiles2` and they outlive a republish (testProfileService.ts; cargo test -p app select_default_profile_stores_the_picked_defaults), the chevron keeps the title's actions in the side bar and Refresh Tests shows only `when: canRefreshTests` (cargo test -p app the_run_group_chevron_keeps_the_view_title_actions_in_the_side_bar); ui-pair with a two-run-profile tests-provider: the open dropdown matches the reference; `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/testing | workbench contribution | M16 | ported | [3 M] testing_gutter.rs `test_context_menu_actions`: no Peek Error on a failed test, as testingOutputPeek.ts (`vscode.peekTestError`) is not ported<br>[3 S] testing_gutter.rs `multi_test_context_menu_actions`: no `MAX_TESTS_IN_SUBMENU` (30) cut with its "{0} more tests..." pick (testingDecorations.ts `pickAndRun`)<br>[3 S] testing_gutter.rs `_revealTestInExplorer`: expands the test's parents and opens the view, but the explorer has no selection, so the row is not selected, focused or scrolled to (testExplorerFilterState.ts `reveal`, testingExplorerView.ts)<br>[3 S] testing_view.rs `dropdown_chevron`: the primary action and chevron take no `toolbar.activeBackground` while their dropdown is open (style.css `.monaco-dropdown.active .action-label`)<br>[3 M] testing_view.rs `testing_view_pane`: the view title is not testExplorerActions.ts's: no Show Output (`ShowMostRecentOutputAction`, `navigation`), Collapse All drawn in the title where upstream puts it in the `...` menu (`displayAction`), no `...` menu; opening the view does not focus the filter box, the "No test results yet." line is missing and file roots start expanded (ui-pair with port/fixtures/debug-node)<br>[3 M] testing_continuous.rs `testing_continuous_context`: the workbench context has only `testing.isContinuousModeOn` of testingContextKeys.ts; `testing.providerCount`, `testing.hasConfigurableProfile`, `testing.canRefreshTests`, `testing.hasAnyResults` and the rest are unset, so the Command Palette hides the `testing.providerCount > 0` commands such as Testing: Focus on Test Explorer View<br>[3 L] testing_view.rs `test_results_body`: the results list is not testResultsTree.ts (no message rows, no context menus with `MenuId.TestPeekElement` and `MenuId.TestMessageContext`) and the message view lacks testResultsViewContent.ts's `FloatingClickMenu` of `MenuId.TestMessageContent`, so `testing/item/result`, `testing/message/context` and `testing/message/content` have no menu | The editor gutter's menu on a test line (editorLineNumberMenu.ts `doShow`, testingDecorations.ts gutter actions generator in `1_testing`): Run Test, Debug Test, Run with Coverage, Execute Using Profile..., Cancel Test Run, Reveal in Test Explorer and the `testing/item/gutter` items with the test as argument, before the `editor/lineNumber/context` items (cargo test -p app the_gutter_menu_shows_the_tests_actions_before_the_line_number_items), on a line of several tests Run All Tests and a submenu per test labeled by its parents (cargo test -p app a_line_with_two_tests_shows_run_all_and_a_submenu_per_test), `_revealTestInExplorer` (cargo test -p app reveal_in_test_explorer_expands_the_tests_parents), the glyph's right click, Ctrl+click, `testing.defaultGutterClickAction` `contextMenu` and `runWithCoverage`, Alt for the alternate group; ui-pair right-click on the run glyph of line 2 of port/fixtures/debug-node/math.test.js with tests-provider: the testing items match the reference; The view title's run and debug group dropdowns once a group has two profiles (testingExplorerView.ts `getRunGroupDropdown`, `getTestConfigGroupActions`: controller labels, `(Default)`, `MenuId.TestProfilesContext` by `testing.profile.context.group`, Select Default Profile, Configure Test Profiles; a profile runs the controller's roots; cargo test -p app the_run_group_dropdown_lists_its_profiles_and_runs_the_picked_one), Select Default Profile stores the defaults in `testingPreferredProfiles2` and they outlive a republish (testProfileService.ts; cargo test -p app select_default_profile_stores_the_picked_defaults), the chevron keeps the title's actions in the side bar and Refresh Tests shows only `when: canRefreshTests` (cargo test -p app the_run_group_chevron_keeps_the_view_title_actions_in_the_side_bar); ui-pair with a two-run-profile tests-provider: the open dropdown matches the reference; `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) |