Visual Studio Code, rebuilt in Rust
Rust
feat(testing): render markdown result messages
rokartur690e17a023c9
diff --git a/native/crates/app/src/workbench/testing_results.rs b/native/crates/app/src/workbench/testing_results.rsindex 2a2a36332fd..23eeb1dc664 100644--- a/native/crates/app/src/workbench/testing_results.rs+++ b/native/crates/app/src/workbench/testing_results.rs@@ -10,11 +10,13 @@ use serde_json::{Value, json};use super::Workbench;use super::hover::{HoverContent, HoverOptions};+use super::markdown_view::MarkdownStyle;use super::testing_item_menu::result_state_context;use super::testing_view::state_icon;use crate::commands::Outcome;use crate::diff_editor::{DIFF_EDITOR_SCHEME, DiffInput, Side};use crate::editor::{TEST_RESULTS_GROUP, TextDocument};+use crate::markdown::MarkdownString;use crate::menus::{MenuAction, MenuId, menu_actions, menu_group_actions};use crate::testing::{GROUP_DEBUG, GROUP_RUN, ResultState, TEST_DATA_SCHEME, TestResult, parent_id};@@ -331,7 +333,12 @@ impl Workbench {}ResultsElement::Message { result, task, test, message } => {let result = self.result_by_id(result).expect("rows come from the results");- let text = message_text(&result.items[test].tasks[*task].messages[*message]);+ // testTypes.ts `renderTestMessageAsText`: a markdown message by `renderAsPlaintext`.+ let message = &result.items[test].tasks[*task].messages[*message];+ let text = match message["message"].is_object() {+ true => crate::markdown::plain_text(&crate::markdown::parse(&MarkdownString::from_value(&message["message"]))),+ false => message_text(message).to_owned(),+ };let lines = text.trim_end().matches('\n').count();let description = match lines {0 => None,@@ -663,6 +670,13 @@ impl Workbench {Some(div().h(px(height)).relative().child(label))}+ /// MarkdownTestMessagePeek `update`: the opened message's markdown, when it is neither a string nor diffable.+ pub(super) fn markdown_message(&self) -> Option<MarkdownString<'_>> {+ let Some(InspectSubject::Message { result, task, test, message }) = &self.testing_view.results_subject else { return None };+ let message = &self.result_by_id(result)?.items[test].tasks[*task].messages[*message];+ (message["message"].is_object() && !is_diffable(message)).then(|| MarkdownString::from_value(&message["message"]))+ }+/// The tab of the opened message's code or diff editor, while it shows that message.fn message_editor(&self) -> Option<&crate::editor::OpenEditor> {let Some(InspectSubject::Message { result, task, test, message }) = &self.testing_view.results_subject else { return None };@@ -812,6 +826,14 @@ impl Workbench {// callStackWidget.ts hosts the message in a list row, so the pane's list row inset applies.return div().id("test-results-output").flex_1().min_w_0().relative().px(px(self.pane_row_inset())).flex().flex_col().child(editor).children(floating);}+ if let Some(markdown) = self.markdown_message() {+ let blocks = crate::markdown::parse(&markdown);+ // `line-height: normal` of the 13px system font.+ let style = MarkdownStyle { font_size: 13., line_height: 15., foreground: self.color("foreground"), action_handler: None, code_foreground: None, code_background: None };+ // testing.css `.preview-text`: 8px 12px 8px 20px of padding; paragraphs 1em apart, none at the ends.+ let text = self.markdown_blocks("test-results-markdown", &blocks, style, "", cx).gap(px(13.)).pt(px(8.)).pr(px(12.)).pb(px(8.)).pl(px(20.));+ return div().id("test-results-output").flex_1().min_w_0().relative().overflow_y_scroll().px(px(self.pane_row_inset())).child(text).children(self.results_floating_button(window, cx));+ }let content = div().id("test-results-output").flex_1().min_w_0().relative().overflow_y_scroll().p(px(8.)).font_family("Menlo").text_size(px(12.)).flex().flex_col();let text = self.testing_view.results_subject.as_ref().and_then(|subject| self.subject_text(subject));let lines = super::debug_console::strip_ansi(&text.unwrap_or_default()).lines().map(|line| div().whitespace_nowrap().child(line.to_owned())).collect::<Vec<_>>();diff --git a/native/crates/app/src/workbench/testing_results/tests.rs b/native/crates/app/src/workbench/testing_results/tests.rsindex 8f8dd1c206c..24c9a897604 100644--- a/native/crates/app/src/workbench/testing_results/tests.rs+++ b/native/crates/app/src/workbench/testing_results/tests.rs@@ -60,6 +60,22 @@ fn an_opened_plain_text_message_shows_in_a_read_only_code_editor(cx: &mut TestAp});}+/// testResultsOutput.ts `MarkdownTestMessagePeek`: an opened markdown message renders its markdown, without an editor.+#[gpui::test]+fn an_opened_markdown_message_renders_its_markdown(cx: &mut TestAppContext) {+ let (workbench, cx, _host) = workbench_with_tests("test-results-markdown", TESTS, cx);+ workbench.update_in(cx, |workbench, _, _| {+ add_results(workbench);+ workbench.testing.results[0].append_message("c\0f\0b", "t1", json!({ "type": 0, "message": { "value": "The **sum**", "isTrusted": false }, "expected": null, "actual": null, "contextValue": null, "location": null }));+ workbench.open_results_element(&ResultsElement::Message { result: "r1".into(), task: 0, test: "c\0f\0b".into(), message: 1 });+ assert_eq!(workbench.markdown_message().map(|markdown| markdown.value), Some("The **sum**"));+ assert!(workbench.message_editor().is_none());+ let label = workbench.results_label(&ResultsElement::Message { result: "r1".into(), task: 0, test: "c\0f\0b".into(), message: 1 }).0;+ assert_eq!(label, "The sum", "the row shows the rendered text");+ workbench.open_results_element(&ResultsElement::Message { result: "r1".into(), task: 0, test: "c\0f\0b".into(), message: 0 });+ assert!(workbench.markdown_message().is_none());+ });+}/// testResultsOutput.ts `DiffContentProvider`: an opened diffable message shows its expected and actual models side by/// side in an embedded diff editor, with line numbers when a side is multiline; a plain text message replaces it.#[gpui::test]diff --git a/port/fixtures/extensions/tests-provider/extension.js b/port/fixtures/extensions/tests-provider/extension.jsindex 6a0ff2bbcb5..345468ce733 100644--- a/port/fixtures/extensions/tests-provider/extension.js+++ b/port/fixtures/extensions/tests-provider/extension.js@@ -1,5 +1,6 @@// Each `test('name', ...)` line of a *.test.js file is one test; a test whose line says `fail` fails, with a-// diffable message when the line also has `expected "..." actual "..."` (JSON strings).+// diffable message when the line also has `expected "..." actual "..."` (JSON strings), a markdown one when it has+// `markdown "..."`.const vscode = require('vscode');exports.activate = async function (context) {@@ -25,9 +26,10 @@ exports.activate = async function (context) {test.range = new vscode.Range(index, 0, index, line.length);if (line.includes('fail')) {const diff = /expected (".*") actual (".*")/.exec(line);+ const markdown = /markdown (".*")/.exec(line);failing.set(test.id, diff? vscode.TestMessage.diff('Expected values to be strictly equal', JSON.parse(diff[1]), JSON.parse(diff[2]))- : new vscode.TestMessage(`${match[1]} failed`));+ : new vscode.TestMessage(markdown ? new vscode.MarkdownString(JSON.parse(markdown[1])) : `${match[1]} failed`));}item.children.add(test);}diff --git a/port/fixtures/testing-messages/markdown.test.js b/port/fixtures/testing-messages/markdown.test.jsnew file mode 100644index 00000000000..ad830429900--- /dev/null+++ b/port/fixtures/testing-messages/markdown.test.js@@ -0,0 +1 @@+test('fails with markdown', () => {}); // markdown "The **sum** is `5`, not `4`.\n\nSee [the docs](https://example.com)."diff --git a/port/ledger.md b/port/ledger.mdindex 177f4ef4811..7d3a03d30fb 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -602,7 +602,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, workbench/terminal_decorations.rs, terminal/marks.rs, terminal/serialize_html.rs, terminal/label.rs: cargo test -p app new_with_profile a_ctrl_d_exit_shows_no_exit_alert terminal::marks serialize_html terminal_decorations hover a_recording_keeps_each_kind_of_event toggle_visibility_writes_the_decorations_setting the_cwd_setting_resolves_its_variables terminal::label terminal_view::tests paths_are_quoted call_operator a_tab_row_is_inset_and_its_label_is_one_line_of_text panel_terminals_revive_in_their_groups_after_a_restart a_terminal_editor_revives_with_its_history_after_a_restart; ui-pair OSC 99, decorations, overview ruler, Copy as HTML, Record Terminal Session, terminal tabs (port/results/terminal.md), m12/folder-terminal.json (but the reference's Ports overflow, removed), m11/task-presentation.json (port/results/manage-menu.md) || workbench/contrib/terminalContrib | workbench contribution | M15 | verified | | terminal/link_parsing.rs, link_computer.rs, workbench/terminal_links.rs, terminal/auto_replies.rs, terminal/search.rs, workbench/terminal_find.rs, terminal/prompt_input.rs, workbench/terminal_suggest.rs, terminal/history.rs, workbench/terminal_quick_access.rs, terminal/sticky_scroll.rs, workbench/terminal_environment.rs, terminal/osc99.rs, terminal/quick_fix.rs, terminal/accessible_buffer.rs, workbench/terminal_initial_hint.rs: cargo test -p app link_ terminal::search prompt_input auto_replies terminal_contrib terminal_links terminal::history sticky_scroll quick_access environment_collection terminal::marks osc99 quick_fix accessible; ui-pair Run Recent Command, `term `, sticky scroll, the initial hint. No counterpart: Show Terminal Texture Atlas, Restart Pty Host. Removed: Copilot CLI, chat and voice (AI), wslRecommendation (Windows) (port/notes.md milestone 15) |-| workbench/contrib/testing | workbench contribution | M16 | ported | [3 M] testing_results.rs `results_content`: an output and a markdown message are plain text lines, not testResultsOutput.ts's terminal and markdown peeks; the content and tree split in half where the reference splits them about 2:1 (testResultsViewContent.ts `SplitView`); a plain text message's ANSI colors are stripped (`colorizeTestMessageInEditor`); no call stack (`MenuId.TestCallStack`), no `CoverageElement` rows | cargo test -p app testing:: testing_filter the_results_tree_shows_tasks_tests_and_messages_as_testresultstree the_results_tree_moves_its_focus_with_the_list_commands a_results_rows_menu_shows_its_actions_and_the_contributed_items an_opened_ the_gutter_menu_shows_the_tests_actions_before_the_line_number_items a_line_with_two_tests_shows_run_all_and_a_submenu_per_test reveal_in_test_explorer_expands_the_tests_parents the_run_group_dropdown_lists_its_profiles_and_runs_the_picked_one select_default_profile_stores_the_picked_defaults the_run_group_chevron_keeps_the_view_title_actions_in_the_side_bar runs_from_the_explorer_exclude_the_tests_the_filter_hides a_hidden_test_leaves_the_tree_and_runs_until_it_is_unhidden a_test_row_shows_the_test_item_menu_s_inline_group a_test_rows_context_menu_shows_and_runs_the_test_item_actions children_sort_by_line_then_by_file_name_order the_view_title_dropdown_starts_and_stops_one_profile_of_several continuous_run_using_picks_from_the_tests_controller_only a_continuous_run_holds_one_cancellable_request_per_profile_until_it_stops the_testing_item_spins view_as_list_shows_the_leaves_and_the_more_menu_checks_the_mode peek_error_opens_the_failed_childs_message_at_the_test a_test_run_waits_for_workspace_trust_and_completes_when_it_is_refused; ui-pair port/fixtures/debug-node with tests-provider (Testing tree, Run All, results tree, row menus, opened message, run glyphs and the gutter menu on port/fixtures/debug-node/math.test.js line 2, the run profile dropdown); ui-pair port/fixtures/testing-messages (diff message); cargo test -p app a_contributed_inline_result_action_draws_its_icon retired_tests_take_test_result_outdated a_line_with_more_than_30_tests_picks_the_rest_from_a_quick_pick reveal_in_test_explorer_selects_and_scrolls_to_the_row the_run_group_chevron_is_active_while_its_menu_is_open the_workbench_context_has_the_testing_service_keys |+| workbench/contrib/testing | workbench contribution | M16 | ported | [3 M] testing_results.rs `results_content`: an output is plain text lines, not testResultsOutput.ts's `TerminalMessagePeek`; a markdown message's text cannot be selected (`userSelect: text`); the content and tree split in half where the reference splits them about 2:1 (testResultsViewContent.ts `SplitView`); a plain text message's ANSI colors are stripped (`colorizeTestMessageInEditor`); no call stack (`MenuId.TestCallStack`), no `CoverageElement` rows | cargo test -p app testing:: testing_filter the_results_tree_shows_tasks_tests_and_messages_as_testresultstree the_results_tree_moves_its_focus_with_the_list_commands a_results_rows_menu_shows_its_actions_and_the_contributed_items an_opened_ the_gutter_menu_shows_the_tests_actions_before_the_line_number_items a_line_with_two_tests_shows_run_all_and_a_submenu_per_test reveal_in_test_explorer_expands_the_tests_parents the_run_group_dropdown_lists_its_profiles_and_runs_the_picked_one select_default_profile_stores_the_picked_defaults the_run_group_chevron_keeps_the_view_title_actions_in_the_side_bar runs_from_the_explorer_exclude_the_tests_the_filter_hides a_hidden_test_leaves_the_tree_and_runs_until_it_is_unhidden a_test_row_shows_the_test_item_menu_s_inline_group a_test_rows_context_menu_shows_and_runs_the_test_item_actions children_sort_by_line_then_by_file_name_order the_view_title_dropdown_starts_and_stops_one_profile_of_several continuous_run_using_picks_from_the_tests_controller_only a_continuous_run_holds_one_cancellable_request_per_profile_until_it_stops the_testing_item_spins view_as_list_shows_the_leaves_and_the_more_menu_checks_the_mode peek_error_opens_the_failed_childs_message_at_the_test a_test_run_waits_for_workspace_trust_and_completes_when_it_is_refused; ui-pair port/fixtures/debug-node with tests-provider (Testing tree, Run All, results tree, row menus, opened message, run glyphs and the gutter menu on port/fixtures/debug-node/math.test.js line 2, the run profile dropdown); ui-pair port/fixtures/testing-messages (diff message); cargo test -p app a_contributed_inline_result_action_draws_its_icon retired_tests_take_test_result_outdated a_line_with_more_than_30_tests_picks_the_rest_from_a_quick_pick reveal_in_test_explorer_selects_and_scrolls_to_the_row the_run_group_chevron_is_active_while_its_menu_is_open the_workbench_context_has_the_testing_service_keys || 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) |diff --git a/port/notes.md b/port/notes.mdindex fab04b713ee..63702da406b 100644--- a/port/notes.md+++ b/port/notes.md@@ -880,7 +880,7 @@ Scope as in the M19 Work row of port/ledger.md.- Test Explorer title (testExplorerActions.ts, `testing_view.rs`): the navigation actions end with Show Output (`terminal`, disabled until a result exists); the "..." holds View as List/Tree, Sort by Status/Location/Duration (workspace storage `testing.viewMode` and `testing.viewSorting`, as testingExplorerView.ts) and Collapse All Tests, Clear All Results. Shortcut: View as List lists the tests the collection has resolved; listProjection.ts also asks the controller to resolve every level (`expandElement(root, Infinity)`), which the port does not send.- Test Results tree (`workbench/testing_results.rs`; testResultsTree.ts `OutputPeekTree`): rows drawn as the workbench tree rows (4px inset, rounded, `list_row_selection`, indent guides, listCommands.ts keys while focused); a new run selects and focuses its first task without taking the focus (`revealItem` with `preserveFocus`). Decision: the task row always shows its twistie when it has children. The reference renders the task row while the task is still childless (`onNewTask`), and abstractTree.ts `renderTreeElement` redraws a twistie only on a collapse state change, so the reference shows no twistie until the row is toggled or rendered again; the port draws the state a fresh render gives.- Test resolution timing: treeProjection.ts `storeItem` expands only depth-0 items, the controller roots; a single root's children show on the explorer's top level collapsed (index.ts `getChildrenForParent`, `depth > 0`) and resolve only when the user expands them, and testService.ts `testsInFile` yields an open file's item without expanding it. The port expanded those file items at publish, so the tests-provider fixture's `resolveHandler` ran for every file and Run All ran each test, where the reference's run handler finds the unresolved file item and runs it as one test (`math.test.js` without children in the results). `TestCollection::apply` now answers only the roots.-- Test Results content editors (`workbench/testing_results.rs`; testResultsOutput.ts content providers): the view's code editors live in `TEST_RESULTS_GROUP`, a group outside the grid like the Output view's `PANEL_GROUP` (`is_panel_group`), so they select, copy and take the editor keys through the same code; `PlainTextMessagePeek` opens a plain text message's `messageUri` model (`vscode-test-data://results/<result>/message/<task>/<message>/TestFailureMessage?<test>`) there read-only, without line numbers, glyph margin, minimap or `scrollBeyondLastLine` (`commonEditorOptions`). Shortcut: ANSI escapes in the message are stripped, not colored as `colorizeTestMessageInEditor` does. `DiffContentProvider` opens a diffable message (an error with string `expected` and `actual`) as an embedded diff of its `ExpectedOutput` and `ActualOutput` models (`DiffInput.embedded`): `diffEditorOptions` fixes the options (side by side, no overview ruler, `ignoreTrimWhitespace` false, unchanged regions shown) instead of reading `diffEditor.*`, line numbers turn on when either side is multiline, and a 20px zone above line 1 holds the "Expected" and "Actual" titles (testingDecorations.ts `TitleLensContentWidget`). The editors are built outside a text editor part, so `lineNumbersMinChars` is the default 5, and only the original side has a glyph margin (`_adjustOptionsForLeftHandSide`). The diff's `diff_part_width` moved to the group state, since the results diff and an editor area diff lay out at once. ui-pair port/fixtures/testing-messages (`compare.test.js`): gutters, fills and titles match; the reference splits the content and tree about 2:1 where the port splits them in half (`TestResultsViewContent.lastSplitWidth`), open.+- Test Results content editors (`workbench/testing_results.rs`; testResultsOutput.ts content providers): the view's code editors live in `TEST_RESULTS_GROUP`, a group outside the grid like the Output view's `PANEL_GROUP` (`is_panel_group`), so they select, copy and take the editor keys through the same code; `PlainTextMessagePeek` opens a plain text message's `messageUri` model (`vscode-test-data://results/<result>/message/<task>/<message>/TestFailureMessage?<test>`) there read-only, without line numbers, glyph margin, minimap or `scrollBeyondLastLine` (`commonEditorOptions`). Shortcut: ANSI escapes in the message are stripped, not colored as `colorizeTestMessageInEditor` does. `DiffContentProvider` opens a diffable message (an error with string `expected` and `actual`) as an embedded diff of its `ExpectedOutput` and `ActualOutput` models (`DiffInput.embedded`): `diffEditorOptions` fixes the options (side by side, no overview ruler, `ignoreTrimWhitespace` false, unchanged regions shown) instead of reading `diffEditor.*`, line numbers turn on when either side is multiline, and a 20px zone above line 1 holds the "Expected" and "Actual" titles (testingDecorations.ts `TitleLensContentWidget`). The editors are built outside a text editor part, so `lineNumbersMinChars` is the default 5, and only the original side has a glyph margin (`_adjustOptionsForLeftHandSide`). The diff's `diff_part_width` moved to the group state, since the results diff and an editor area diff lay out at once. ui-pair port/fixtures/testing-messages (`compare.test.js`): gutters, fills and titles match; the reference splits the content and tree about 2:1 where the port splits them in half (`TestResultsViewContent.lastSplitWidth`), open. `MarkdownTestMessagePeek` renders a markdown message through `markdown_view.rs` in testing.css `.preview-text` (8px 12px 8px 20px padding, paragraphs 1em apart at `line-height: normal`, 15px here), and its results row reads the rendered text (`renderTestMessageAsText`). ui-pair of a `markdown "..."` test (tests-provider): text box 240x77 at the same left in both, 1px lower in the reference.- Continuous run (`workbench/testing_continuous.rs`): the view title's dropdown of `getContinuousRunDropdown` runs plain actions upstream; the port's context menu runs commands, so each profile item is an internal `_testing.toggleContinuousRunProfile.<controller>.<profile>` command registered when the menu shows. testingExplorerView.ts re-sorts a parent when a continuous run changes, but `TreeSorter` has no continuous run criterion in 1.147.0, so the order does not change; the port draws rows from the run state each frame and needs no re-sort. The unattended restart participant `testing.continuousRun` waits on the unattended restart service (ledger row workbench/services/lifecycle).- Inline values (`workbench/debug_inline_values.rs`; debugEditorContribution.ts): `debug.inlineValues` `on` or `auto` with a provider shows the focused frame's values as `InjectionOwner::DebugInlineValue` text after the lines, `editor.inlineValuesForeground` on `editor.inlineValuesBackground`. Shortcuts: only the active editor shows them, where upstream decorates every editor on the frame's file; the scopes and variables are fetched again, not shared with the Variables view's cache; the text area width stands in for `layoutInfo.width` in the line length cut.- Debug hover (`workbench/debug_hover.rs`; debugHover.ts, debugEditorContribution.ts hover handling): while stopped, the expression at the mouse in the focused frame's file (the first `EvaluatableExpressionProvider` through `$provideEvaluatableExpression`, else `getExactExpressionStartAndEnd`) is evaluated with `context: "hover"` (or looked up in the cheap scopes without `supportsEvaluateForHovers`) after the doubled `editor.hover.delay`, the editor hover off meanwhile; Alt swaps it for the editor hover; Cmd+K Cmd+I shows it at the cursor. The focused tree takes listWidget.ts's and abstractTree.ts's keys through the `list.*` commands (Up, Down, Page Up, Page Down, Home, End, Left, Right, Space, Enter, type navigation by name), Escape clears a selection before it hides the widget; `layoutTree` sizes the tree to its rows plus 10px, at most max(266px, 55% of the editor) and the hovered line's top less 22px. The visualizers are a ledger gap of workbench/contrib/debug; the context menu is under Variable menus. The glyph margin lifts the editor hover lockout; the hovered position is the nearer edge of the character under the mouse, a tab's middle included. Lazy rows (`presentationHint.lazy`) draw the `$(eye)` button after the name in the hover, Variables and Watch trees; a lazy watch, hover or REPL result is evaluated at once (debugModel.ts `evaluateExpression` without `keepLazyVars`). A click on an expandable row focuses and toggles it; with Alt the descendants whose children are loaded follow, the others stay collapsed (indexTreeModel.ts `_setNodeCollapseState` recursive, asyncDataTree.ts collapsing a stale node a deep expand reaches). `list.find` (Cmd+Alt+F, F3) on the focused tree opens abstractTree.ts's find widget over 30px of padding: highlight or filter mode and fuzzy or contiguous match by `workbench.list.defaultFindMode` and `defaultFindMatchType` and the widget's toggles, the filter keeps a collapsed parent of a loaded match, "No results found.", the focus to the first match from the focused row; it outlives each shown value like the tree, and Escape hides the hover and runs `list.closeFind` after it. ui-pair on `port/fixtures/debug-node` (Cmd+K Cmd+I on `numbers` and `greeting`) matches the reference's placement, tree indent and focus outline.