Visual Studio Code, rebuilt in Rust
Rust
feat(debug): draw indent guides in the debug trees
rokartura70eeb44f754
diff --git a/native/crates/app/src/workbench/debug_view.rs b/native/crates/app/src/workbench/debug_view.rsindex c086475fcb2..68ea320189d 100644--- a/native/crates/app/src/workbench/debug_view.rs+++ b/native/crates/app/src/workbench/debug_view.rs@@ -117,6 +117,8 @@ const ROW_HEIGHT: f32 = 22.;pub(super) const EXPRESSION_FONT: &str = "Menlo";pub(super) const EXPRESSION_FONT_SIZE: f32 = 11.;const INDENT: f32 = 8.;+/// A tree row with its depth and whether it is selected, for the indent guides.+pub(super) type DebugTreeRow = (gpui::AnyElement, usize, bool);impl Workbench {pub(super) fn mark_variables_view_created(&mut self) {@@ -382,7 +384,7 @@ impl Workbench {CALL_STACK_VIEW => self.call_stack_rows(list_focused, cx),BREAKPOINTS_VIEW => self.breakpoint_rows(list_focused, window, cx),LOADED_SCRIPTS_VIEW => self.loaded_script_rows(list_focused, cx),- _ => vec![self.debug_welcome(window, cx).into_any_element()],+ _ => vec![(self.debug_welcome(window, cx).into_any_element(), 0, false)],};let bar = (!actions.is_empty()).then(|| {let bar = div().flex().gap(px(2.)).children(actions.into_iter().map(|(icon, command, enabled)| self.action_bar_item(id, command, self.search_action(icon, command, enabled, cx), cx)));@@ -392,7 +394,13 @@ impl Workbench {let body = div().id(id).flex_1().min_h_0().overflow_y_scroll().when_some(list_focus.cloned(), |body, focus| {body.track_focus(&focus).capture_any_mouse_down(move |_, window, cx| window.focus(&focus, cx))});- let body = body.children(rows).into_any_element();+ let depths = rows.iter().map(|(_, depth, _)| *depth).collect();+ let active: Vec<usize> = rows.iter().enumerate().filter(|(_, (_, _, selected))| *selected).map(|(index, _)| index).collect();+ let group = gpui::SharedString::from(format!("{id}-tree"));+ let guides = self.tree_guides_in_group(group.clone(), depths, &active);+ let inset = self.pane_row_inset();+ let rows = rows.into_iter().enumerate().map(|(index, (row, _, _))| div().relative().child(row).children(guides.row(index, inset)));+ let body = body.group(group).children(rows).into_any_element();super::view_panes::ViewPane { id, title: title.into(), description: None, actions: bar, draws_more: false, show_actions: false, body }}@@ -532,7 +540,7 @@ impl Workbench {.into_any_element()}- fn variables_rows(&self, list_focused: bool, window: &Window, cx: &mut Context<Self>) -> Vec<gpui::AnyElement> {+ fn variables_rows(&self, list_focused: bool, window: &Window, cx: &mut Context<Self>) -> Vec<DebugTreeRow> {let Some(session) = self.debug.focus.session.clone() else { return Vec::new() };let mut rows = Vec::new();let first_cheap = self.debug.scopes.iter().position(|scope| !scope.expensive);@@ -542,12 +550,11 @@ impl Workbench {let reference = scope.variables_reference;let row_key = key.clone();let session_id = session.clone();- rows.push(- self.debug_row(key.clone(), 0, Some(expanded), self.row_selected(&key), list_focused, cx)- .child(div().debug_selector(|| format!("{key}/label")).font_weight(gpui::FontWeight::BOLD).text_size(px(11.)).child(scope.name.clone()))- .on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| workbench.toggle_debug_row(&row_key, expanded, &session_id, reference, window, cx)))- .into_any_element(),- );+ let row = self+ .debug_row(key.clone(), 0, Some(expanded), self.row_selected(&key), list_focused, cx)+ .child(div().debug_selector(|| format!("{key}/label")).font_weight(gpui::FontWeight::BOLD).text_size(px(11.)).child(scope.name.clone()))+ .on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| workbench.toggle_debug_row(&row_key, expanded, &session_id, reference, window, cx)));+ rows.push((row.into_any_element(), 0, self.row_selected(&key)));if expanded {self.variable_children(&session, reference, &key, 1, false, list_focused, &mut rows, window, cx);}@@ -556,7 +563,7 @@ impl Workbench {}#[allow(clippy::too_many_arguments)]- fn variable_children(&self, session: &str, reference: i64, parent: &str, depth: usize, in_watch: bool, list_focused: bool, rows: &mut Vec<gpui::AnyElement>, window: &Window, cx: &mut Context<Self>) {+ fn variable_children(&self, session: &str, reference: i64, parent: &str, depth: usize, in_watch: bool, list_focused: bool, rows: &mut Vec<DebugTreeRow>, window: &Window, cx: &mut Context<Self>) {let Some(children) = self.debug.children.get(&(session.to_owned(), reference)) else { return };for variable in children {let key = format!("{parent}/{}", variable.name);@@ -570,7 +577,7 @@ impl Workbench {let (row_key, session_id, child_reference) = (key.clone(), session.to_owned(), variable.variables_reference);let edit = Editing::Variable { session: session.to_owned(), parent_reference: reference, name: variable.name.clone(), watch: in_watch };if self.debug_view.editing.as_ref() == Some(&edit) {- rows.push(self.debug_input_row(key, depth, list_focused, window, cx));+ rows.push((self.debug_input_row(key, depth, list_focused, window, cx), depth, false));continue;}let lazy_button = variable.is_lazy().then(|| self.lazy_button(session, reference, variable, &key, cx));@@ -597,7 +604,7 @@ impl Workbench {};workbench.show_variable_menu(row, gpui::Bounds::new(event.position, Default::default()), window, cx);}));- rows.push(row.into_any_element());+ rows.push((row.into_any_element(), depth, self.row_selected(&key)));if expanded {self.variable_children(session, variable.variables_reference, &key, depth + 1, in_watch, list_focused, rows, window, cx);}@@ -628,13 +635,13 @@ impl Workbench {cx.notify();}- fn watch_rows(&self, list_focused: bool, window: &Window, cx: &mut Context<Self>) -> Vec<gpui::AnyElement> {+ fn watch_rows(&self, list_focused: bool, window: &Window, cx: &mut Context<Self>) -> Vec<DebugTreeRow> {let mut rows = Vec::new();let session = self.debug.focus.session.clone().unwrap_or_default();for expression in &self.debug.model.watch_expressions {let key = format!("watch/{}", expression.id);if [Some(Editing::Watch(expression.id.clone())), Some(Editing::WatchValue(expression.id.clone()))].contains(&self.debug_view.editing) {- rows.push(self.debug_input_row(key, 0, list_focused, window, cx));+ rows.push((self.debug_input_row(key, 0, list_focused, window, cx), 0, false));continue;}let value = self.debug.watch_values.get(&expression.id).cloned().unwrap_or_else(|| Variable { name: expression.name.clone(), value: "not available".into(), ..Variable::default() });@@ -656,18 +663,18 @@ impl Workbench {let row = VariableMenuRow::WatchExpression { id: menu_id.clone(), name: menu_name.clone() };workbench.show_variable_menu(row, gpui::Bounds::new(event.position, Default::default()), window, cx);}));- rows.push(row.into_any_element());+ rows.push((row.into_any_element(), 0, self.row_selected(&key)));if expanded {self.variable_children(&session, value.variables_reference, &key, 1, true, list_focused, &mut rows, window, cx);}}if self.debug_view.editing == Some(Editing::NewWatch) {- rows.push(self.debug_input_row("watch/new".into(), 0, list_focused, window, cx));+ rows.push((self.debug_input_row("watch/new".into(), 0, list_focused, window, cx), 0, false));}rows}- fn call_stack_rows(&self, list_focused: bool, cx: &mut Context<Self>) -> Vec<gpui::AnyElement> {+ fn call_stack_rows(&self, list_focused: bool, cx: &mut Context<Self>) -> Vec<DebugTreeRow> {let mut rows = Vec::new();let call_stack_menu = |item: CallStackItem| cx.listener(move |workbench, event: &MouseDownEvent, window, cx| workbench.show_call_stack_menu(&item, gpui::Bounds::new(event.position, Default::default()), window, cx));let sessions = &self.debug.sessions;@@ -694,7 +701,7 @@ impl Workbench {let state = super::capitalize_words(&state);let state = div().flex_none().ml_auto().px(px(4.)).py(px(2.)).min_h(px(18.)).flex().items_center().rounded(px(4.)).text_size(px(11.)).bg(label_background).text_color(label_foreground).child(state);let item = CallStackItem::Session(session.id.clone());- rows.push(self.debug_row(format!("session/{}", session.id), session_depth, Some(true), false, list_focused, cx).child(self.icon("bug", 16., 16., self.foreground_or("icon.foreground"))).child(div().min_w_0().truncate().child(session.name.clone())).child(state).on_mouse_down(MouseButton::Right, call_stack_menu(item)).into_any_element());+ rows.push((self.debug_row(format!("session/{}", session.id), session_depth, Some(true), false, list_focused, cx).child(self.icon("bug", 16., 16., self.foreground_or("icon.foreground"))).child(div().min_w_0().truncate().child(session.name.clone())).child(state).on_mouse_down(MouseButton::Right, call_stack_menu(item)).into_any_element(), session_depth, false));}for thread in &session.threads {let thread_key = format!("thread/{}/{}", session.id, thread.id);@@ -702,7 +709,7 @@ impl Workbench {let show_thread = session.threads.len() > 1;if show_thread {let item = CallStackItem::Thread(session.id.clone(), thread.id);- rows.push(self.debug_row(thread_key.clone(), depth, Some(true), false, list_focused, cx).child(thread.name.clone()).child(state_label(thread.state_label())).on_mouse_down(MouseButton::Right, call_stack_menu(item)).into_any_element());+ rows.push((self.debug_row(thread_key.clone(), depth, Some(true), false, list_focused, cx).child(thread.name.clone()).child(state_label(thread.state_label())).on_mouse_down(MouseButton::Right, call_stack_menu(item)).into_any_element(), depth, false));}let frame_depth = depth + usize::from(show_thread);let frames = &thread.frames;@@ -717,7 +724,7 @@ impl Workbench {let folded = &frames[index - 1..index - 1 + run];let keys: Vec<String> = folded.iter().map(|frame| format!("deemphasized/{}/{}", session.id, frame.id)).collect();let label = show_more_label(folded);- rows.push(+ rows.push((self.debug_row(format!("more-frames/{}/{}", session.id, frame.id), frame_depth, None, false, list_focused, cx).justify_center().text_color(self.color("textLink.foreground"))@@ -727,13 +734,15 @@ impl Workbench {cx.notify();})).into_any_element(),- );+ frame_depth,+ false,+ ));index += run - 1;continue;}let frame_menu = call_stack_menu(CallStackItem::Frame(session.id.clone(), thread.id, index - 1));if frame.presentation_hint.as_deref() == Some("label") {- rows.push(self.debug_row(format!("frame/{}/{}", session.id, frame.id), frame_depth, None, false, list_focused, cx).justify_center().italic().text_color(self.color("descriptionForeground")).child(frame.name.clone()).on_mouse_down(MouseButton::Right, frame_menu).into_any_element());+ rows.push((self.debug_row(format!("frame/{}/{}", session.id, frame.id), frame_depth, None, false, list_focused, cx).justify_center().italic().text_color(self.color("descriptionForeground")).child(frame.name.clone()).on_mouse_down(MouseButton::Right, frame_menu).into_any_element(), frame_depth, false));continue;}let focused = self.debug.focus.session.as_deref() == Some(session.id.as_str()) && self.debug.focus.frame == Some(frame.id);@@ -749,17 +758,16 @@ impl Workbench {let focus = super::debug_service::DebugFocus { session: Some(session_id.clone()), thread: Some(thread_id), frame: Some(frame_id) };workbench.set_debug_focus(focus, super::debug_service::Reveal::PreservingFocus, window, cx);}));- rows.push(row.into_any_element());+ rows.push((row.into_any_element(), frame_depth, focused));}if thread.stopped && thread.total_frames.is_some() {let (session_id, thread_id) = (session.id.clone(), thread.id);- rows.push(- self.debug_row(format!("more/{}/{}", session.id, thread.id), frame_depth, None, false, list_focused, cx)- .text_color(self.color("textLink.foreground"))- .child("Load More Stack Frames")- .on_click(cx.listener(move |workbench, _: &ClickEvent, _, cx| workbench.fetch_more_frames(&session_id, thread_id, cx)))- .into_any_element(),- );+ let row = self+ .debug_row(format!("more/{}/{}", session.id, thread.id), frame_depth, None, false, list_focused, cx)+ .text_color(self.color("textLink.foreground"))+ .child("Load More Stack Frames")+ .on_click(cx.listener(move |workbench, _: &ClickEvent, _, cx| workbench.fetch_more_frames(&session_id, thread_id, cx)));+ rows.push((row.into_any_element(), frame_depth, false));}}}@@ -806,7 +814,7 @@ impl Workbench {view.set_body_limits(index, minimum, if all_others_collapsed { f32::INFINITY } else { minimum });}- fn breakpoint_rows(&self, list_focused: bool, window: &Window, cx: &mut Context<Self>) -> Vec<gpui::AnyElement> {+ fn breakpoint_rows(&self, list_focused: bool, window: &Window, cx: &mut Context<Self>) -> Vec<DebugTreeRow> {let mut rows = Vec::new();let model = &self.debug.model;let focused = self.debug.focus.session.as_deref();@@ -879,10 +887,11 @@ impl Workbench {.into_any_element(),);}- rows+ // A flat list: no row has a parent whose guides it could make active.+ rows.into_iter().map(|row| (row, 0, false)).collect()}- fn loaded_script_rows(&self, list_focused: bool, cx: &mut Context<Self>) -> Vec<gpui::AnyElement> {+ fn loaded_script_rows(&self, list_focused: bool, cx: &mut Context<Self>) -> Vec<DebugTreeRow> {let Some(session) = self.debug.focused_session() else { return Vec::new() };session.loaded_sources@@ -890,7 +899,7 @@ impl Workbench {.map(|source| {let name = source["name"].as_str().or(source["path"].as_str()).unwrap_or_default().to_owned();let key = format!("source/{name}");- self.debug_row(key.clone(), 0, None, self.row_selected(&key), list_focused, cx).child(name).into_any_element()+ (self.debug_row(key.clone(), 0, None, self.row_selected(&key), list_focused, cx).child(name).into_any_element(), 0, self.row_selected(&key))}).collect()}@@ -1274,6 +1283,23 @@ mod tests {assert_eq!(label.left() - row.left(), px(30.));}+ /// abstractTree.ts `_renderIndentGuides` in the Variables tree: a variable under its scope draws its scope's guide+ /// 16px into the row (tree.css `.monaco-tl-indent`).+ #[gpui::test]+ fn a_variable_row_draws_its_scopes_indent_guide(cx: &mut TestAppContext) {+ let (workbench, cx, _host) = super::super::variable_menu::tests::stopped_session(cx, json!({}));+ workbench.update(cx, |workbench, cx| {+ workbench.debug.scopes = vec![Variable { name: "Local".into(), variables_reference: 4, ..Variable::default() }];+ workbench.debug.children.insert(("s".into(), 4), vec![Variable { name: "x".into(), value: "1".into(), ..Variable::default() }]);+ workbench.debug_view.expanded.insert("scope/Local".into());+ workbench.show_debug_view(cx);+ });+ cx.update(|window, cx| drop(window.draw(cx)));+ let row = cx.debug_bounds("scope/Local/x").expect("the variable row");+ let guide = cx.debug_bounds("tree-guide").expect("the variable's guide");+ assert_eq!((guide.left() - row.left(), guide.top(), guide.size.height), (px(16.), row.top(), row.size.height));+ }+/// debug.contribution.css: a watch row's `.expression` label is 11px monospace on macOS.#[gpui::test]fn watch_expression_labels_use_the_monospace_font(cx: &mut TestAppContext) {diff --git a/native/crates/app/src/workbench/debug_visualizers.rs b/native/crates/app/src/workbench/debug_visualizers.rsindex 4fb58d51761..002f14e48e6 100644--- a/native/crates/app/src/workbench/debug_visualizers.rs+++ b/native/crates/app/src/workbench/debug_visualizers.rs@@ -306,11 +306,11 @@ impl Workbench {/// `VisualizedVariableRenderer`: a visualized row, then its expanded children. `original` is the variable row it/// replaces, which shows Remove Visualizer.#[allow(clippy::too_many_arguments)]- pub(super) fn visualized_rows(&self, tree_id: &str, item: &Value, original: Option<&RowKey>, key: String, depth: usize, list_focused: bool, rows: &mut Vec<gpui::AnyElement>, window: &Window, cx: &mut Context<Self>) {+ pub(super) fn visualized_rows(&self, tree_id: &str, item: &Value, original: Option<&RowKey>, key: String, depth: usize, list_focused: bool, rows: &mut Vec<super::debug_view::DebugTreeRow>, window: &Window, cx: &mut Context<Self>) {let item_id = item["id"].as_i64().unwrap_or_default();let edit = Editing::Visualized { tree_id: tree_id.to_owned(), item_id };if self.debug_view.editing.as_ref() == Some(&edit) {- rows.push(self.debug_input_row(key, depth, list_focused, window, cx));+ rows.push((self.debug_input_row(key, depth, list_focused, window, cx), depth, false));return;}// DebugTreeItemCollapsibleState.None@@ -358,7 +358,8 @@ impl Workbench {workbench.toggle_visualized_row(&row_key, expanded, &tree, item_id, window, cx);}}));- rows.push(row.into_any_element());+ let selected = self.debug_view.selected.as_deref() == Some(key.as_str());+ rows.push((row.into_any_element(), depth, selected));if !expanded {return;}diff --git a/port/ledger.md b/port/ledger.mdindex 805ee81dc95..32b987ca434 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -530,7 +530,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 | verified | | workbench/comments_view.rs, workbench/comment_thread_widget.rs, comment_thread_floating.rs, workbench/comment_thread_floating_layout.rs, workbench/comment_node.rs, workbench/commenting_ranges.rs, workbench/comment_navigation.rs, workbench/editor_view/comment_glyph.rs, multi_diff_editor_view.rs: cargo test -p app comment diff floating room multi_diff comment_thread_floating two_threads_keep_their_reply_forms_open_together a_wrapped_comment_body_grows_its_zone the_reached_thread_takes_the_focus a_markdown_comment_previews_its_first_rendered_block the_filter_keeps_its_history_and_escape_clears_it the_thread_menu_replies_to_the_thread a_comment_s_code_span_draws_no_code_block_background additional_actions_show_under_the_body_and_run_with_the_thread a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor dismissing_a_new_template_keeps_it_open an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides (commentThreadFloatingWidget.test.ts); ui-pair `portComments.openDiff` (modified, original, multi, floating), steps-comment-floating.json, steps-comment-additional.json, steps-comment-escape-typed.json, steps-comment-reply-editor.json, steps-comments.json (port/results/language-features.md Comments, Comment editing and commands, Floating comment threads); cargo test -p app reactions_are_action_items_4px_apart || workbench/contrib/customEditor | workbench contribution | M17 | ported | [3 L] custom_editors.rs: a diff always opens in the text diff editor, where customEditors.ts `createDiffEditorInput` opens a diff of resources matching an editor's selector (`workbench.diffEditorAssociations`, `priority.diffEditor`) as a `CustomEditorDiffInput` (customEditorDiffInput.ts, inline) or a `DiffEditorInput` of two `CustomEditorSideBySideDiffInput`s or `CustomEditorInput`s, with the proposed `customEditorDiffs` capabilities (`supportsInlineDiff`, `supportsSideBySideDiff`, used by markdown-language-features' preview); so `activeCustomEditorTextDiff` (contextkeys.ts) is never set and Reopen as Text (editor.contribution.ts `ReOpenInTextEditorAction`, `enableInModalMode`) is missing from the editor title and the modal header | cargo test -p app custom_editors each_group_s_custom_text_editor_has_its_own_webview a_custom_text_editor_s_navigation_drives_the_outline 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 a_workspace_association_wins_over_a_user_one_of_the_same_length a_reopened_preview_keeps_its_tab_position two_default_editors_for_a_resource_ask_once_which_to_keep markdown_editor_files_offer; `FIXTURE=custom-editor-tests port/tools/webview-check` 8/8 |-| workbench/contrib/debug | workbench contribution | M16 | ported | [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_view.rs: the focused frame's Call Stack row draws `list.inactiveSelectionBackground` where the reference's, with js-debug's compact child session, draws none (ui-pair `debug/variables-menu.json` stopped.png; callStackView.ts `updateTreeSelection`, why its selection does not show not traced) <br> [3 M] debug_visualizers.rs: visualized rows draw only in the Variables view; the Watch view's and the debug hover's expression children keep their plain rows (watchExpressionsView.ts:98, debugHover.ts:142 register `VisualizedVariableRenderer`) <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_view.rs: the Variables, Watch, Call Stack, Breakpoints and Loaded Scripts trees draw no indent guides (`workbench.tree.renderIndentGuides`, `tree_guides.rs`; ui-pair `debug/visualizer.json` local.png) <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) (ui-pair `debug/variables-menu.json`, line 5 of app.js) | cargo test -p app debug launch_picker_shrinks the_debug_container_more_actions debug_service a_workbench_hover_draws_over_the_debug_hover the_tree_height_keeps_an_above_hover_off_the_hovered_line watch_expression_labels_use_the_monospace_font debug_view debug_task_runner debug_commands debug_console debug::ansi an_ended_session_stays_in_the_picker_until_cleared_or_started_again a_start_or_restart_saves_the_dirty_editors a_hit_breakpoint_enables_its_dependents debug_inline_values debug_hover alt_click_toggles_the_loaded_subtree a_click_on_a_hover_row_focuses_the_tree a_lazy_row_takes_its_value_from_the_eye_button the_find_widget_filters_the_hover_tree disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints a_right_clicked_call_stack_row_takes_the_list_focus the_debug_toolbar_and_create_configuration_menus_take_contributed_items debug_toolbar variable_menu a_stop_on_a_line_in_view_keeps_the_scroll the_debug_picker_lists_and_starts_the_launch_configurations the_first_scope_expands_only_once_the_variables_view_exists the_find_widget_filters_the_console; ui-pair port/fixtures/debug-node (breakpoint, F5, views, REPL, toolbar, `greeting` and `numbers` hovers), menus/view-container-title.json, port/fixtures/ui-pair/debug/hover-find.json, port/fixtures/ui-pair/debug/unverified-breakpoints.json, port/fixtures/ui-pair/debug/call-stack-menu.json, port/fixtures/ui-pair/debug/toolbar.json, port/fixtures/ui-pair/debug/variables-menu.json, port/fixtures/ui-pair/debug/lazy-variable.json, port/fixtures/ui-pair/debug/quick-access.json; shortcuts in port/notes.md |+| workbench/contrib/debug | workbench contribution | M16 | ported | [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_view.rs: the focused frame's Call Stack row draws `list.inactiveSelectionBackground` where the reference's, with js-debug's compact child session, draws none (ui-pair `debug/variables-menu.json` stopped.png; callStackView.ts `updateTreeSelection`, why its selection does not show not traced) <br> [3 M] debug_visualizers.rs: visualized rows draw only in the Variables view; the Watch view's and the debug hover's expression children keep their plain rows (watchExpressionsView.ts:98, debugHover.ts:142 register `VisualizedVariableRenderer`) <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 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) (ui-pair `debug/variables-menu.json`, line 5 of app.js) | cargo test -p app debug launch_picker_shrinks the_debug_container_more_actions debug_service a_workbench_hover_draws_over_the_debug_hover the_tree_height_keeps_an_above_hover_off_the_hovered_line watch_expression_labels_use_the_monospace_font debug_view debug_task_runner debug_commands debug_console debug::ansi an_ended_session_stays_in_the_picker_until_cleared_or_started_again a_start_or_restart_saves_the_dirty_editors a_hit_breakpoint_enables_its_dependents debug_inline_values debug_hover alt_click_toggles_the_loaded_subtree a_click_on_a_hover_row_focuses_the_tree a_lazy_row_takes_its_value_from_the_eye_button the_find_widget_filters_the_hover_tree disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints a_right_clicked_call_stack_row_takes_the_list_focus the_debug_toolbar_and_create_configuration_menus_take_contributed_items debug_toolbar variable_menu a_stop_on_a_line_in_view_keeps_the_scroll the_debug_picker_lists_and_starts_the_launch_configurations the_first_scope_expands_only_once_the_variables_view_exists the_find_widget_filters_the_console a_variable_row_draws_its_scopes_indent_guide; ui-pair port/fixtures/debug-node (breakpoint, F5, views, REPL, toolbar, `greeting` and `numbers` hovers), menus/view-container-title.json, port/fixtures/ui-pair/debug/hover-find.json, port/fixtures/ui-pair/debug/unverified-breakpoints.json, port/fixtures/ui-pair/debug/call-stack-menu.json, port/fixtures/ui-pair/debug/toolbar.json, port/fixtures/ui-pair/debug/variables-menu.json, port/fixtures/ui-pair/debug/lazy-variable.json, port/fixtures/ui-pair/debug/quick-access.json; 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 |