Skip to content

Visual Studio Code, rebuilt in Rust

Rust

fix(debug): expression labels in the monospace font

rokartur292946974dc7
diff --git a/native/crates/app/src/workbench/debug_hover.rs b/native/crates/app/src/workbench/debug_hover.rs
index 29b278f94fa..c16caf5ca6e 100644
--- a/native/crates/app/src/workbench/debug_hover.rs
+++ b/native/crates/app/src/workbench/debug_hover.rs
@@ -701,7 +701,7 @@ impl Workbench {
// abstractTree.ts `TreeRenderer.DefaultIndent` (8px) plus `workbench.tree.indent` per level.
let indent = 8. + INDENT * row.depth as f32;
let lazy_button = row.variable.is_lazy().then(|| self.lazy_button(session, row.parent_reference, row.variable, &row.key, cx));
- let mut element = div().id(gpui::SharedString::from(row.key.clone())).h(px(ROW_HEIGHT)).flex().items_center().pl(px(indent)).child(twistie).child(self.expression_label(row.variable, &row.highlights, lazy_button));
+ let mut element = div().id(gpui::SharedString::from(row.key.clone())).h(px(ROW_HEIGHT)).flex().items_center().pl(px(indent)).child(twistie).child(self.expression_label(row.variable, &row.highlights, lazy_button).font_family(super::debug_view::EXPRESSION_FONT).text_size(px(super::debug_view::EXPRESSION_FONT_SIZE)));
element = element.on_click(cx.listener(move |workbench, event: &ClickEvent, window, cx| {
if expandable {
workbench.toggle_debug_hover_row(&key, &session_id, reference, !expanded, event.modifiers().alt, window, cx);
diff --git a/native/crates/app/src/workbench/debug_view.rs b/native/crates/app/src/workbench/debug_view.rs
index 2fd88f15aef..620e8918f82 100644
--- a/native/crates/app/src/workbench/debug_view.rs
+++ b/native/crates/app/src/workbench/debug_view.rs
@@ -88,6 +88,10 @@ impl DebugView {
}
const ROW_HEIGHT: f32 = 22.;
+/// debug.contribution.css: `.debug-pane` and `.debug-hover-widget` `.expression` labels use `--monaco-monospace-font` at 11px on
+/// macOS; its first family, SF Mono, GPUI cannot load by name, so the editor's Menlo stands in as in walkthrough_part.rs.
+pub(super) const EXPRESSION_FONT: &str = "Menlo";
+pub(super) const EXPRESSION_FONT_SIZE: f32 = 11.;
const INDENT: f32 = 8.;
impl Workbench {
@@ -509,7 +513,7 @@ impl Workbench {
let expanded = expandable && self.row_expanded(&key, false);
let (row_key, session_id, child_reference) = (key.clone(), session.to_owned(), variable.variables_reference);
let lazy_button = variable.is_lazy().then(|| self.lazy_button(session, reference, variable, &key, cx));
- let mut row = self.debug_row(key.clone(), depth, expandable.then_some(expanded), self.row_selected(&key), list_focused, cx).child(self.expression_label(variable, &[], lazy_button));
+ let mut row = self.debug_row(key.clone(), depth, expandable.then_some(expanded), self.row_selected(&key), list_focused, cx).child(self.expression_label(variable, &[], lazy_button).font_family(EXPRESSION_FONT).text_size(px(EXPRESSION_FONT_SIZE)));
if expandable {
row = row.on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| workbench.toggle_debug_row(&row_key, expanded, &session_id, child_reference, window, cx)));
}
@@ -566,7 +570,7 @@ impl Workbench {
let expandable = value.has_children();
let expanded = expandable && self.row_expanded(&key, false);
let (row_key, session_id, reference, id) = (key.clone(), session.clone(), value.variables_reference, expression.id.clone());
- let mut row = self.debug_row(key.clone(), 0, expandable.then_some(expanded), self.row_selected(&key), list_focused, cx).child(self.expression_label(&Variable { name: expression.name.clone(), ..value.clone() }, &[], None));
+ let mut row = self.debug_row(key.clone(), 0, expandable.then_some(expanded), self.row_selected(&key), list_focused, cx).child(self.expression_label(&Variable { name: expression.name.clone(), ..value.clone() }, &[], None).debug_selector(|| format!("{key}/label")).font_family(EXPRESSION_FONT).text_size(px(EXPRESSION_FONT_SIZE)));
row = row.on_click(cx.listener(move |workbench, event: &ClickEvent, window, cx| {
if event.click_count() == 2 {
workbench.start_debug_view_edit(Editing::Watch(id.clone()), window, cx);
@@ -664,7 +668,7 @@ impl Workbench {
.debug_row(format!("frame/{}/{}", session.id, frame.id), frame_depth, None, focused, list_focused, cx)
.when(frame.deemphasized(), |row| row.opacity(0.7))
.overflow_hidden()
- .child(div().flex_1().flex_shrink_0().whitespace_nowrap().child(frame.name.clone()))
+ .child(div().flex_1().flex_shrink_0().whitespace_nowrap().font_family(EXPRESSION_FONT).text_size(px(EXPRESSION_FONT_SIZE)).child(frame.name.clone()))
.child(self.frame_file(frame, focused))
.on_mouse_down(MouseButton::Right, frame_menu)
.on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| {
@@ -1074,6 +1078,35 @@ mod tests {
assert_eq!(outline, row);
}
+ /// 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) {
+ let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
+ let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
+ let theme = load_theme(&[themes], "Dark Modern").unwrap();
+ let (narrow, wide) = (String::from("iiiiiiii"), String::from("MMMMMMMM"));
+ let (workbench, cx) = cx.add_window_view(|_, cx| {
+ let mut workbench = Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), crate::default_settings(), HostSync::new(std::sync::mpsc::channel().0), cx);
+ workbench.debug.sessions.push(crate::debug::session::Session::new("s".into(), 1, json!({ "name": "Launch", "type": "node", "request": "launch" }), json!({}), None, json!({})));
+ workbench.show_debug_view(cx);
+ workbench
+ });
+ workbench.update(cx, |workbench, cx| {
+ let watch = |id: &str, name: &String| crate::debug::WatchExpression { id: id.into(), name: name.clone() };
+ workbench.debug.model.watch_expressions = vec![watch("narrow", &narrow), watch("wide", &wide)];
+ cx.notify();
+ });
+ cx.update(|window, cx| drop(window.draw(cx)));
+ let narrow_width = cx.debug_bounds("watch/narrow/label").expect("the narrow watch row's label").size.width;
+ let wide_width = cx.debug_bounds("watch/wide/label").expect("the wide watch row's label").size.width;
+ let menlo = cx.update(|window, _| {
+ let text = format!("{wide} =not available");
+ let run = gpui::TextRun { len: text.len(), font: gpui::font(EXPRESSION_FONT), color: gpui::black(), background_color: None, underline: None, strikethrough: None };
+ window.text_system().shape_line(text.into(), px(EXPRESSION_FONT_SIZE), &[run], None).width
+ });
+ assert_eq!((narrow_width, wide_width), (wide_width, (menlo + px(6.)).round()));
+ }
+
/// callStackView.ts `ShowMoreRenderer`.
#[test]
fn folded_frames_name_their_common_origin() {
diff --git a/port/ledger.md b/port/ledger.md
index 4da6f02f8fd..e62833c9f50 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -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 M] comment_thread_widget.rs: no commentThreadAdditionalActions.ts (`comments/commentThread/additionalActions`): the separator and secondary button bar under the body, submenus as ButtonWithDropdown, at most 4, counted in the zone height and the floating widths <br> [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), 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] debug_view.rs: the debug views' `.expression` labels (Call Stack frame names, Variables and Watch rows) draw in the UI font where debug.contribution.css sets the 13 px editor monospace font (ui-pair `debug/call-stack-menu.json`, `FOLDER=port/fixtures/debug-node`: the reference's `global.main` is monospace) <br> [3 M] variable_menu.rs: Set Value (Variables and Watch), View Binary Data and Break on Value Read/Change/Access are not in the variable menus: no `setVariable`/`setExpression` edit, no `memoryReference` kept on a variable, no `dataBreakpointInfo` request (ui-pair `debug/variables-menu.json` shows Set Value in the reference's Watch menu) <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 `$(eye)` button's look and hover not compared against the reference: with the reference's js-debug neither an object literal getter nor a class getter (port/fixtures/debug-node/lazy.js, ui-pair `debug/lazy-variable.json`) comes as a lazy `(...)` row, the hover shows `size = ƒ size()`, so the fixture still needs a value js-debug sends with `presentationHint.lazy` <br> [3 S] debug_hover.rs: `tree_height` takes the editor's `offsetTop` as 0 where debugHover.ts `layoutTree` adds it to the tree's top and the limit; the editor's offsetParent is its group's absolutely positioned `.split-view-view` (splitview.css), so it is the group title's and breadcrumbs' height, which the hover does not know, so a complex hover above line 3 of port/fixtures/debug-node/app.js shows one row where the reference shows six (ui-pair `debug/hover-find.json`), and with the find widget open the rows draw past the tree's box <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); 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: 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 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: Set Value (Variables and Watch), View Binary Data and Break on Value Read/Change/Access are not in the variable menus: no `setVariable`/`setExpression` edit, no `memoryReference` kept on a variable, no `dataBreakpointInfo` request (ui-pair `debug/variables-menu.json` shows Set Value in the reference's Watch menu) <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 `$(eye)` button's look and hover not compared against the reference: with the reference's js-debug neither an object literal getter nor a class getter (port/fixtures/debug-node/lazy.js, ui-pair `debug/lazy-variable.json`) comes as a lazy `(...)` row, the hover shows `size = ƒ size()`, so the fixture still needs a value js-debug sends with `presentationHint.lazy` <br> [3 S] debug_hover.rs: `tree_height` takes the editor's `offsetTop` as 0 where debugHover.ts `layoutTree` adds it to the tree's top and the limit; the editor's offsetParent is its group's absolutely positioned `.split-view-view` (splitview.css), so it is the group title's and breadcrumbs' height, which the hover does not know, so a complex hover above line 3 of port/fixtures/debug-node/app.js shows one row where the reference shows six (ui-pair `debug/hover-find.json`), and with the find widget open the rows draw past the tree's box <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); 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: 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 |