Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(debug): add Focus Session, Stop dropdown, Alt swap and toolbar locations

rokarture62916df1497
diff --git a/native/crates/app/src/menus.rs b/native/crates/app/src/menus.rs
index 90ee26d5e30..2da9d2e44ed 100644
--- a/native/crates/app/src/menus.rs
+++ b/native/crates/app/src/menus.rs
@@ -139,6 +139,8 @@ pub enum MenuId {
DebugHoverContext,
/// `MenuId.DebugToolBar`: the floating debug toolbar's actions.
DebugToolBar,
+ /// `MenuId.DebugToolBarStop`: the dropdown beside the debug toolbar's Stop or Disconnect.
+ DebugToolBarStop,
/// `MenuId.DebugCreateConfiguration`: items appended to the Select Debugger picker.
DebugCreateConfiguration,
/// timeline.contribution.ts "Filter Timeline": a toggle per timeline source.
@@ -493,7 +495,11 @@ const WORKBENCH_MENUS: &[Row] = &[
(MenuId::DebugToolBar, None, "workbench.action.debug.restart", "Restart", "navigation", 60., None, None),
(MenuId::DebugToolBar, None, "workbench.action.debug.stepBack", "Step Back", "navigation", 50., Some("stepBackSupported"), Some("debugState == 'stopped'")),
(MenuId::DebugToolBar, None, "workbench.action.debug.reverseContinue", "Reverse", "navigation", 55., Some("stepBackSupported"), Some("debugState == 'stopped'")),
- // debugViewlet.ts: the Run and Debug container's title. shortcut: the docked toolbar's items (debugToolBar.ts) wait for `debug.toolBarLocation` docked (ledger debug row).
+ (MenuId::DebugToolBar, None, "workbench.action.debug.focusProcess", "Focus Session", "navigation", 100., Some("multiSessionDebug && config.debug.toolBarLocation != 'commandCenter'"), None),
+ (MenuId::DebugToolBarStop, None, "workbench.action.debug.disconnect", "Disconnect", "navigation", 0., Some("!focusedSessionIsAttach && terminateDebuggeeSupported"), None),
+ (MenuId::DebugToolBarStop, None, "workbench.action.debug.stop", "Stop", "navigation", 0., Some("focusedSessionIsAttach && terminateDebuggeeSupported"), None),
+ (MenuId::DebugToolBarStop, None, "workbench.action.debug.disconnectAndSuspend", "Disconnect and Suspend", "navigation", 0., Some("!focusedSessionIsAttach && suspendDebuggeeSupported && terminateDebuggeeSupported || focusedSessionIsAttach && suspendDebuggeeSupported"), None),
+ // debugViewlet.ts: the Run and Debug container's title; `debug_container_actions` adds the docked toolbar's items.
(MenuId::ViewContainerTitle, None, "workbench.action.debug.start", "Start Debugging", "navigation", 10., Some("viewContainer == 'workbench.view.debug' && debugUx != 'simple' && workbenchState != 'empty' && (debugState == 'inactive' || config.debug.toolBarLocation != 'docked') && (!config.debug.hideLauncherWhileDebugging || !inDebugMode)"), Some("debugState != 'initializing'")),
(MenuId::ViewContainerTitle, None, "workbench.action.debug.configure", "Open 'launch.json'", "navigation", 20., Some("viewContainer == 'workbench.view.debug' && debugUx != 'simple' && workbenchState != 'empty' && (debugState == 'inactive' || config.debug.toolBarLocation != 'docked')"), Some("debugUx != 'simple'")),
(MenuId::ViewContainerTitle, None, "workbench.action.debug.configure", "Open 'launch.json'", "", 20., Some("viewContainer == 'workbench.view.debug' && debugState != 'inactive' && config.debug.toolBarLocation == 'docked'"), Some("debugUx != 'simple'")),
diff --git a/native/crates/app/src/theme/debug_colors.rs b/native/crates/app/src/theme/debug_colors.rs
index b3269417ead..edacef33a29 100644
--- a/native/crates/app/src/theme/debug_colors.rs
+++ b/native/crates/app/src/theme/debug_colors.rs
@@ -37,6 +37,10 @@ pub(super) fn debug_default(key: &str) -> Option<[ColorValue; 4]> {
"editor.inlineValuesForeground" => [Hex("#ffffff80"), Hex("#00000080"), Hex("#ffffff80"), Hex("#00000080")],
"editor.inlineValuesBackground" => [Hex("#ffc80033"), Hex("#ffc80033"), Hex("#ffc80033"), Hex("#ffc80033")],
"statusBar.debuggingBackground" => [Hex("#CC6633"), Hex("#CC6633"), Hex("#BA592C"), Hex("#B5200D")],
+ "commandCenter.debuggingBackground" => {
+ const DEBUGGING: ColorValue = Transparent(&Key("statusBar.debuggingBackground"), 0.258);
+ [DEBUGGING, DEBUGGING, DEBUGGING, DEBUGGING]
+ }
"statusBar.debuggingForeground" => [Key("statusBar.foreground"), Key("statusBar.foreground"), Key("statusBar.foreground"), Hex("#FFFFFF")],
"testing.iconFailed" | "testing.iconErrored" => [Key("list.errorForeground"), Key("list.errorForeground"), Key("list.errorForeground"), Key("list.errorForeground")],
"testing.iconPassed" | "testing.runAction" => [Hex("#73c991"), Hex("#73c991"), Hex("#73c991"), Hex("#007100")],
diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rs
index 778153d15dd..7b5171d863f 100644
--- a/native/crates/app/src/workbench.rs
+++ b/native/crates/app/src/workbench.rs
@@ -716,6 +716,10 @@ impl Render for Workbench {
.on_modifiers_changed(cx.listener(|workbench, event: &gpui::ModifiersChangedEvent, window, cx| {
workbench.hover_modifiers_changed(event.modifiers.alt, cx);
workbench.terminal_link_modifiers_changed(event.modifiers, cx);
+ // The debug toolbar's items swap to their alt commands while Alt is held.
+ if workbench.debug.state() != crate::debug::session::State::Inactive {
+ cx.notify();
+ }
if let Some(input) = workbench.quick_inputs.current_mut() {
input.modifiers_changed(event.modifiers);
workbench.flush_quick_input_events(window, cx);
@@ -1331,11 +1335,13 @@ impl Workbench {
.pl(px(8.))
.border_1()
.rounded(px(6.))
- .bg(self.color("commandCenter.background"))
+ .bg(self.color(if self.command_center_debugging() { "commandCenter.debuggingBackground" } else { "commandCenter.background" }))
.border_color(self.color(if active { "commandCenter.border" } else { "commandCenter.inactiveBorder" }))
.text_color(if active { self.color("commandCenter.foreground") } else { foreground })
.hover(|center| center.bg(self.color("commandCenter.activeBackground")).border_color(self.color("commandCenter.activeBorder")).text_color(self.color("commandCenter.activeForeground")))
.text_size(px(12.))
+ // `.command-center-center.multiple`: 12px padding on each side, outside the 38vw.
+ .when_some(self.command_center_debug_actions(window, cx), |center, actions| center.w(px(viewport_width * 0.38 + 2. + 24.)).pl(px(12.)).pr(px(12.)).child(actions))
.child(div().debug_selector(|| "command-center-label".into()).child(self.command_center_label()))
.child(self.hover_target("command-center", HoverContent::Text(self.command_center_tooltip()), HoverOptions::instant()))
.on_mouse_down(MouseButton::Right, cx.listener(show_command_center_context_menu))
diff --git a/native/crates/app/src/workbench/debug_commands.rs b/native/crates/app/src/workbench/debug_commands.rs
index 39f0c732db5..4ff5c56a9af 100644
--- a/native/crates/app/src/workbench/debug_commands.rs
+++ b/native/crates/app/src/workbench/debug_commands.rs
@@ -43,6 +43,14 @@ impl Workbench {
};
workbench.execute_command("workbench.extensions.search", vec![json!(search)], window, cx)
});
+ // debugCommands.ts FOCUS_SESSION_ID: the session, or its stopped or first child, and its frame's editor.
+ self.commands.register("workbench.action.debug.focusProcess", |workbench, args, window, cx| {
+ let Some(session) = args.first().and_then(Value::as_str) else { return Outcome::done() };
+ let session = workbench.resolve_child_session(&session);
+ let focus = workbench.debug.focus_target(Some(&session), None);
+ workbench.set_debug_focus(focus, super::debug_service::Reveal::PreservingFocus, window, cx);
+ Outcome::done()
+ });
self.commands.register("debug.openView", |workbench, _, _, cx| {
workbench.show_debug_view(cx);
Outcome::done()
@@ -486,6 +494,7 @@ impl Workbench {
context.insert("debuggersAvailable".into(), json!(!self.debug.debuggers.is_empty()));
context.insert("debugType".into(), json!(focused.map(|session| session.session_type()).unwrap_or_default()));
context.insert("focusedSessionIsAttach".into(), json!(focused.is_some_and(|session| session.configuration["request"] == "attach")));
+ context.insert("multiSessionDebug".into(), json!(self.debug.multi_session_view));
context.insert("focusedSessionIsNoDebug".into(), json!(focused.is_some_and(|session| session.configuration["noDebug"] == true)));
for (key, capability) in [("terminateDebuggeeSupported", "supportTerminateDebuggee"), ("suspendDebuggeeSupported", "supportSuspendDebuggee"), ("terminateThreadsSupported", "supportsTerminateThreadsRequest"), ("debugSetVariableSupported", "supportsSetVariable"), ("debugSetExpressionSupported", "supportsSetExpression")] {
context.insert(key.into(), json!(focused.is_some_and(|session| session.capabilities[capability] == true)));
@@ -505,6 +514,9 @@ impl Workbench {
context.insert("languageSupportsDisassembleRequest".into(), json!(language.is_some_and(|language| self.debug.debuggers.iter().any(|debugger| debugger.interested_in_language(&language)))));
let simple = state == State::Inactive && !self.workspace_folders().iter().any(|folder| !self.folder_launch(folder).configurations.is_empty());
context.insert("debugUx".into(), json!(if simple { "simple" } else { "default" }));
+ for setting in ["debug.toolBarLocation", "debug.hideLauncherWhileDebugging"] {
+ context.insert(format!("config.{setting}"), self.setting(setting));
+ }
context.insert(format!("viewContainer.{VIEWLET_ID}.enabled"), json!(true));
context.insert(format!("{REPL_VIEW_ID}.active"), json!(true));
context.insert("inDebugRepl".into(), json!(self.debug_console.focus.is_focused(window) || self.debug_console.input_focus.is_focused(window)));
diff --git a/native/crates/app/src/workbench/debug_console.rs b/native/crates/app/src/workbench/debug_console.rs
index fc056b99461..8130a30b19e 100644
--- a/native/crates/app/src/workbench/debug_console.rs
+++ b/native/crates/app/src/workbench/debug_console.rs
@@ -319,13 +319,18 @@ impl Workbench {
return;
}
self.debug_console.selected_session = None;
- let children: Vec<_> = self.debug.sessions.iter().filter(|session| session.parent.as_deref() == Some(session_id)).collect();
- let child = children.iter().find(|session| session.state(None) == crate::debug::session::State::Stopped).or(children.first());
- let target = child.map_or(session_id.to_owned(), |session| session.id.clone());
+ let target = self.resolve_child_session(session_id);
let focus = self.debug.focus_target(Some(&target), None);
self.set_debug_focus(focus, super::debug_service::Reveal::No, window, cx);
}
+ /// debugUtils.ts `resolveChildSession`: the session's stopped child, else its first child, else the session.
+ pub(super) fn resolve_child_session(&self, session_id: &str) -> String {
+ let children: Vec<_> = self.debug.sessions.iter().filter(|session| session.parent.as_deref() == Some(session_id)).collect();
+ let child = children.iter().find(|session| session.state(None) == crate::debug::session::State::Stopped).or(children.first());
+ child.map_or(session_id.to_owned(), |session| session.id.clone())
+ }
+
/// repl.ts `clearRepl`: empties the shown console; a cleared inactive session leaves the picker.
pub(super) fn clear_repl(&mut self) {
let Some(shown) = self.shown_repl_session() else { return };
diff --git a/native/crates/app/src/workbench/debug_service.rs b/native/crates/app/src/workbench/debug_service.rs
index e775ada8125..8d41d818e47 100644
--- a/native/crates/app/src/workbench/debug_service.rs
+++ b/native/crates/app/src/workbench/debug_service.rs
@@ -85,6 +85,8 @@ pub struct DebugService {
pub initializing: bool,
/// `viewModel.firstSessionStart`.
pub first_session_started: bool,
+ /// debugViewModel.ts `multiSessionDebug`: set once a start leaves more than one toolbar session, cleared when none is left.
+ pub multi_session_view: bool,
/// `chosenEnvironments`: the debugger picked for a file without a launch configuration.
chosen_environments: Map<String, Value>,
/// debugAdapterManager.ts `earlyActivatedExtensions`: the extensions active before the first debugger activation.
@@ -1357,6 +1359,9 @@ impl Workbench {
}
let shown_repl = self.shown_repl_session();
let mut session = self.debug.sessions.remove(index);
+ if self.debug.sessions.is_empty() {
+ self.debug.multi_session_view = false;
+ }
session.exited = true;
session.cancel_pending();
let dto = self.debug.session_dto(&session);
@@ -1863,6 +1868,9 @@ async fn finish_session(this: &WeakEntity<Workbench>, cx: &mut AsyncWindowContex
workbench.open_debug_console(false, window, cx);
}
workbench.debug.first_session_started = true;
+ if workbench.toolbar_sessions().len() > 1 {
+ workbench.debug.multi_session_view = true;
+ }
workbench.update_debug_status();
let Some(session) = workbench.debug.session(&session_id) else { return };
let dto = workbench.debug.session_dto(session);
diff --git a/native/crates/app/src/workbench/debug_toolbar.rs b/native/crates/app/src/workbench/debug_toolbar.rs
index afd0ae016e5..abb3d96b3da 100644
--- a/native/crates/app/src/workbench/debug_toolbar.rs
+++ b/native/crates/app/src/workbench/debug_toolbar.rs
@@ -5,9 +5,10 @@ use gpui::{ClickEvent, Context, Div, MouseButton, MouseDownEvent, MouseMoveEvent
use std::collections::HashMap;
-use serde_json::Value;
+use serde_json::{Value, json};
use super::Workbench;
+use crate::commands::Outcome;
use super::hover::{HoverContent, HoverOptions};
use crate::debug::session::State;
use crate::menus::{CommandIcon, MenuAction, MenuId, menu_actions};
@@ -18,6 +19,10 @@ const Y_KEY: &str = "debug.actionswidgety";
const HEIGHT: f32 = 28.;
const ACTION_WIDTH: f32 = 26.;
const DRAG_AREA_WIDTH: f32 = 20.;
+/// dropdown.css: the chevron's 16px codicon pulled 3px into the primary button.
+const STOP_DROPDOWN_WIDTH: f32 = 13.;
+const FOCUS_SESSION_ID: &str = "workbench.action.debug.focusProcess";
+const STOP_COMMANDS: [&str; 2] = ["workbench.action.debug.stop", "workbench.action.debug.disconnect"];
/// The drag that moves the toolbar: the pointer and the toolbar's x fraction and y where it started, and where
/// it is now; the position is stored when the button is released.
@@ -58,11 +63,14 @@ const ICON_COLORS: [(&str, &str); 10] = [
impl Workbench {
/// debugToolBar.ts: `getFlatActionBarActions` of `MenuId.DebugToolBar`, the workbench's and the extensions' items.
- fn debug_toolbar_actions(&self, context: &HashMap<String, Value>) -> Vec<(String, String, bool)> {
+ /// menuEntryActionViewItem.ts `updateAltState`: with Alt held an item shows and runs its enabled alt command.
+ fn debug_toolbar_actions(&self, context: &HashMap<String, Value>, alt_held: bool) -> Vec<(String, String, bool)> {
let mut actions = Vec::new();
for action in menu_actions(&self.menus, MenuId::DebugToolBar, context) {
- if let MenuAction::Command { id, title, enabled, .. } = action {
- actions.push((id, title, enabled));
+ match action {
+ MenuAction::Command { alt: Some((id, title)), .. } if alt_held => actions.push((id, title, true)),
+ MenuAction::Command { id, title, enabled, .. } => actions.push((id, title, enabled)),
+ _ => {}
}
}
actions
@@ -110,8 +118,17 @@ impl Workbench {
return None;
}
let context = self.key_context(window);
- let actions = self.debug_toolbar_actions(&context);
- let width = 2. + DRAG_AREA_WIDTH + actions.len() as f32 * ACTION_WIDTH;
+ let actions = self.debug_toolbar_actions(&context, window.modifiers().alt);
+ // debugToolBar.ts `createDisconnectMenuItemAction`: Stop or Disconnect gets a dropdown of `MenuId.DebugToolBarStop`.
+ let stop_actions = menu_actions(&self.menus, MenuId::DebugToolBarStop, &context);
+ let dropdown_width = if stop_actions.is_empty() { 0. } else { STOP_DROPDOWN_WIDTH };
+ let mut width = 2. + DRAG_AREA_WIDTH + dropdown_width;
+ for (command, ..) in &actions {
+ width += match command.as_str() {
+ FOCUS_SESSION_ID => self.focus_session_select_width(window) + 2.,
+ _ => ACTION_WIDTH,
+ };
+ }
let window_width = f32::from(window.viewport_size().width);
let (x, y) = self.debug_toolbar_position();
// debugToolBar.ts `yRange`: from the top to the bottom of the title bar and the editor tabs.
@@ -119,6 +136,7 @@ impl Workbench {
let left = (x * window_width - width / 2.).clamp(0., (window_width - width).max(0.));
let mut bar = div()
.id("debug-toolbar")
+ .debug_selector(|| "debug-toolbar".into())
.absolute()
.left(px(left))
.top(px(y))
@@ -149,32 +167,183 @@ impl Workbench {
})),
);
for (command, title, enabled) in actions {
- let tooltip = self.keybindings.resolver.append_keybinding(&title, &command, &context);
- bar = bar.child(
- self.debug_toolbar_icon(&command, &title, enabled)
- .id(gpui::SharedString::from(format!("debug-toolbar-{command}")))
- .mr(px(4.))
- .rounded(px(4.))
- .child(self.hover_target(gpui::SharedString::from(format!("debug-toolbar-hover-{command}")), HoverContent::Text(tooltip), HoverOptions::mouse()))
- .when(enabled, |item| {
- item.cursor_pointer().hover(|item| item.bg(self.color("toolbar.hoverBackground"))).on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| {
- workbench.execute_command(&command, Vec::new(), window, cx);
- }))
- }),
- );
+ // debugToolBar.css: 4px after each action item, the session select's own 2px.
+ let margin = if command == FOCUS_SESSION_ID { 2. } else { 4. };
+ bar = bar.child(div().flex().mr(px(margin)).child(self.debug_toolbar_item(command, title, enabled, &context, &stop_actions, window, cx)));
}
Some(bar)
}
- /// statusbarColorProvider.ts `isStatusbarInDebugMode` with `debug.enableStatusBarColor`.
- pub(super) fn statusbar_in_debug_mode(&self) -> bool {
+ /// debugToolBar.ts: with `debug.toolBarLocation` `commandCenter`, the `Debug` submenu of `MenuId.CommandCenterCenter`
+ /// whose actions commandCenterControl.ts `CommandCenterCenterViewItem` shows as a toolbar before the search label.
+ pub(super) fn command_center_debug_actions(&self, window: &Window, cx: &mut Context<Self>) -> Option<Div> {
+ if self.debug.state() == State::Inactive || self.setting("debug.toolBarLocation") != "commandCenter" {
+ return None;
+ }
+ let context = self.key_context(window);
+ let actions = self.debug_toolbar_actions(&context, window.modifiers().alt);
+ let mut bar = div().debug_selector(|| "command-center-debug".into()).flex().items_center().gap(px(4.)).mr(px(8.)).on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation());
+ for (command, title, enabled) in actions {
+ bar = bar.child(self.debug_toolbar_item(command, title, enabled, &context, &[], window, cx));
+ }
+ Some(bar)
+ }
+
+ /// An item of the toolbar, floating or docked: the session select, Stop or Disconnect with its dropdown, else a button.
+ pub(super) fn debug_toolbar_item(&self, command: String, title: String, enabled: bool, context: &HashMap<String, Value>, stop_actions: &[MenuAction], window: &Window, cx: &mut Context<Self>) -> gpui::AnyElement {
+ if command == FOCUS_SESSION_ID {
+ return self.focus_session_select(window, cx).into_any_element();
+ }
+ let tooltip = self.keybindings.resolver.append_keybinding(&title, &command, context);
+ let dropdown = !stop_actions.is_empty() && STOP_COMMANDS.contains(&command.as_str());
+ let item = self
+ .debug_toolbar_icon(&command, &title, enabled)
+ .id(gpui::SharedString::from(format!("debug-toolbar-{command}")))
+ .rounded(px(4.))
+ .child(self.hover_target(gpui::SharedString::from(format!("debug-toolbar-hover-{command}")), HoverContent::Text(tooltip), HoverOptions::mouse()))
+ .when(enabled, |item| {
+ item.cursor_pointer().when(!dropdown, |item| item.hover(|item| item.bg(self.color("toolbar.hoverBackground")))).on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| {
+ workbench.execute_command(&command, Vec::new(), window, cx);
+ }))
+ });
+ if !dropdown {
+ return item.into_any_element();
+ }
+ self.debug_stop_dropdown(item, stop_actions.to_vec(), cx).into_any_element()
+ }
+
+ /// debugActionViewItems.ts `FocusSessionActionViewItem.getSessions`: child sessions only with `debug.showSubSessionsInToolBar`.
+ pub(super) fn toolbar_sessions(&self) -> Vec<&crate::debug::session::Session> {
+ let show_sub_sessions = self.setting("debug.showSubSessionsInToolBar") == true;
+ self.debug.sessions.iter().filter(|session| show_sub_sessions || session.parent.is_none()).collect()
+ }
+
+ /// `mapFocusedSessionToSelected`: the focused session, or its top parent without sub sessions in the toolbar.
+ fn toolbar_selected_session(&self) -> Option<String> {
+ let show_sub_sessions = self.setting("debug.showSubSessionsInToolBar") == true;
+ let mut session = self.debug.focused_session()?;
+ while let Some(parent) = session.parent.as_deref().filter(|_| !show_sub_sessions).and_then(|parent| self.debug.session(parent)) {
+ session = parent;
+ }
+ Some(session.id.clone())
+ }
+
+ /// debugToolBar.css `.select-container`: the label with 8px before and 24px after, 100px to 170px wide.
+ fn focus_session_select_width(&self, window: &Window) -> f32 {
+ let label = self.toolbar_selected_session().and_then(|id| self.debug.session(&id).map(|session| session.name.clone())).unwrap_or_default();
+ let run = gpui::TextRun { len: label.len(), font: window.text_style().font(), color: gpui::black(), background_color: None, underline: None, strikethrough: None };
+ let text = f32::from(window.text_system().shape_line(label.into(), px(11.), &[run], None).width);
+ (text + 32.).clamp(100., 170.)
+ }
+
+ /// `FocusSessionActionViewItem`: a select box of the toolbar sessions, child sessions indented, which runs
+ /// `workbench.action.debug.focusProcess` with the chosen one.
+ fn focus_session_select(&self, window: &Window, cx: &mut Context<Self>) -> gpui::Stateful<Div> {
+ let selected = self.toolbar_selected_session();
+ let label = selected.as_deref().and_then(|id| self.debug.session(id)).map(|session| session.name.clone()).unwrap_or_default();
+ let foreground = self.foreground_or("dropdown.foreground");
+ let tracked = self.debug_view.focus_session_bounds.clone();
+ div()
+ .id("debug-toolbar-focus-session")
+ .debug_selector(|| "debug-toolbar-focus-session".into())
+ .relative()
+ .w(px(self.focus_session_select_width(window)))
+ .h(px(24.))
+ .flex()
+ .items_center()
+ .pl(px(8.))
+ .pr(px(24.))
+ .border_1()
+ .rounded(px(4.))
+ .cursor_pointer()
+ .text_size(px(11.))
+ .whitespace_nowrap()
+ .overflow_hidden()
+ .text_ellipsis()
+ .bg(self.color("dropdown.background"))
+ .border_color(self.color("dropdown.border"))
+ .text_color(foreground)
+ .child(label)
+ .child(self.icon("chevron-down", 16., 16., foreground).absolute().right(px(4.)))
+ .child(gpui::canvas(move |bounds, _, _| tracked.set(bounds), |_, _, _, _| {}).absolute().size_full())
+ .on_mouse_down(MouseButton::Left, cx.listener(move |workbench, _: &MouseDownEvent, window, cx| {
+ cx.stop_propagation();
+ workbench.show_focus_session_menu(selected.clone(), window, cx);
+ }))
+ }
+
+ /// The select box's options, each running `workbench.action.debug.focusProcess` with its session.
+ fn show_focus_session_menu(&mut self, selected: Option<String>, window: &mut Window, cx: &mut Context<Self>) {
+ let count = self.toolbar_sessions().len();
+ while self.debug_view.focus_session_commands < count {
+ let index = self.debug_view.focus_session_commands;
+ self.commands.register(format!("{FOCUS_SESSION_ID}.{index}"), move |workbench, _, window, cx| {
+ let Some(session) = workbench.toolbar_sessions().get(index).map(|session| session.id.clone()) else { return Outcome::done() };
+ workbench.execute_command(FOCUS_SESSION_ID, vec![json!(session)], window, cx)
+ });
+ self.debug_view.focus_session_commands += 1;
+ }
+ let mut actions = Vec::new();
+ for (index, session) in self.toolbar_sessions().into_iter().enumerate() {
+ let title = match session.parent {
+ Some(_) => format!("\u{a0}\u{a0}{}", session.name),
+ None => session.name.clone(),
+ };
+ let checked = Some(&session.id) == selected.as_ref();
+ actions.push(MenuAction::Command { id: format!("{FOCUS_SESSION_ID}.{index}"), title, enabled: true, checked, alt: None });
+ }
+ let context = self.key_context(window);
+ let anchor = self.debug_view.focus_session_bounds.get();
+ self.show_context_menu_actions(actions, &context, anchor, Vec::new(), window, cx);
+ }
+
+ /// dropdownWithPrimaryActionViewItem.ts: the primary button and a chevron opening the secondary actions, one
+ /// hover background over both (dropdown.css `.monaco-dropdown-with-primary`).
+ fn debug_stop_dropdown(&self, primary: gpui::Stateful<Div>, actions: Vec<MenuAction>, cx: &mut Context<Self>) -> gpui::Stateful<Div> {
+ let tracked = self.debug_view.stop_dropdown_bounds.clone();
+ let chevron = self
+ .icon("chevron-down", STOP_DROPDOWN_WIDTH, 16., self.foreground_or("icon.foreground"))
+ .id("debug-toolbar-stop-dropdown")
+ .debug_selector(|| "debug-toolbar-stop-dropdown".into())
+ .relative()
+ .cursor_pointer()
+ .child(gpui::canvas(move |bounds, _, _| tracked.set(bounds), |_, _, _, _| {}).absolute().size_full())
+ .child(self.hover_target("debug-toolbar-stop-dropdown-hover", HoverContent::Text("More...".into()), HoverOptions::mouse()))
+ .on_click(cx.listener(move |workbench, _: &ClickEvent, window, cx| {
+ cx.stop_propagation();
+ let context = workbench.key_context(window);
+ let anchor = workbench.debug_view.stop_dropdown_bounds.get();
+ workbench.show_context_menu_actions(actions.clone(), &context, anchor, Vec::new(), window, cx);
+ }));
+ div()
+ .id("debug-toolbar-stop-actions")
+ .flex()
+ .items_center()
+ .rounded(px(5.))
+ .hover(|item| item.bg(self.color("toolbar.hoverBackground")))
+ .child(primary)
+ .child(chevron)
+ }
+
+ /// statusbarColorProvider.ts `update`: with the toolbar in the command center, its background while debugging.
+ pub(super) fn command_center_debugging(&self) -> bool {
+ self.setting("debug.toolBarLocation") == "commandCenter" && self.debug_in_status_bar_mode()
+ }
+
+ /// statusbarColorProvider.ts `isStatusbarInDebugMode`.
+ fn debug_in_status_bar_mode(&self) -> bool {
let state = self.debug.state();
- if self.setting("debug.enableStatusBarColor") == false || state == State::Inactive || state == State::Initializing {
+ if state == State::Inactive || state == State::Initializing {
return false;
}
!self.debug.sessions.iter().all(|session| session.options["suppressDebugStatusbar"] == true || session.configuration["noDebug"] == true)
}
+ /// statusbarColorProvider.ts `isStatusbarInDebugMode` with `debug.enableStatusBarColor`.
+ pub(super) fn statusbar_in_debug_mode(&self) -> bool {
+ self.setting("debug.enableStatusBarColor") != false && self.debug_in_status_bar_mode()
+ }
+
/// debugStatus.ts: the `status.debug` entry with the selected configuration, by `debug.showInStatusBar`.
pub(crate) fn update_debug_status(&mut self) {
let shown = self.status_entries.iter().any(|entry| entry.entry_id == DEBUG_STATUS_ID);
@@ -233,3 +402,129 @@ impl Workbench {
self.store_debug_toolbar_position(drag.current.0, drag.current.1);
}
}
+
+#[cfg(test)]
+mod tests {
+ use std::path::Path;
+
+ use gpui::TestAppContext;
+ use serde_json::json;
+
+ use super::super::Workbench;
+ use crate::menus::MenuAction;
+
+ fn stopped(cx: &mut TestAppContext) -> (gpui::Entity<Workbench>, &mut gpui::VisualTestContext) {
+ 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 = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
+ let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, crate::languages::Languages::new(&[]), crate::default_settings(), crate::host_sync::HostSync::new(std::sync::mpsc::channel().0), cx));
+ workbench.update_in(cx, |workbench, _, cx| {
+ let mut session = crate::debug::session::Session::new("s".into(), 1, json!({ "name": "s", "type": "node", "request": "launch" }), json!({}), None, json!({}));
+ session.initialized = true;
+ session.capabilities = json!({ "supportTerminateDebuggee": true });
+ workbench.debug.sessions.push(session);
+ workbench.debug.focus = super::super::debug_service::DebugFocus { session: Some("s".into()), thread: Some(1), frame: None };
+ cx.notify();
+ });
+ cx.run_until_parked();
+ (workbench, cx)
+ }
+
+ /// debugToolBar.ts `createDisconnectMenuItemAction`: the Stop button's chevron opens `MenuId.DebugToolBarStop` below it.
+ #[gpui::test]
+ fn the_stop_dropdown_opens_the_debug_toolbar_stop_menu(cx: &mut TestAppContext) {
+ let (workbench, cx) = stopped(cx);
+ assert!(cx.debug_bounds("debug-toolbar").is_some(), "the toolbar floats by default");
+ let chevron = cx.debug_bounds("debug-toolbar-stop-dropdown").expect("Stop has a dropdown with terminateDebuggeeSupported");
+ cx.simulate_click(chevron.center(), gpui::Modifiers::none());
+ let (origin, ids) = workbench.read_with(cx, |workbench, _| {
+ let level = &workbench.context_menu.as_ref().expect("the chevron opens its menu").levels[0];
+ let ids: Vec<String> = level.actions.iter().filter_map(|action| match action {
+ MenuAction::Command { id, .. } => Some(id.clone()),
+ _ => None,
+ }).collect();
+ (level.origin, ids)
+ });
+ assert_eq!(origin, chevron.bottom_left());
+ assert_eq!(ids, ["workbench.action.debug.disconnect"]);
+ }
+
+ /// debugActionViewItems.ts `FocusSessionActionViewItem`: with two sessions the select lists them and focuses the chosen one.
+ #[gpui::test]
+ fn the_focus_session_select_focuses_the_chosen_session(cx: &mut TestAppContext) {
+ let (workbench, cx) = stopped(cx);
+ workbench.update_in(cx, |workbench, _, cx| {
+ let mut session = crate::debug::session::Session::new("t".into(), 2, json!({ "name": "t", "type": "node", "request": "launch" }), json!({}), None, json!({}));
+ session.initialized = true;
+ workbench.debug.sessions.push(session);
+ workbench.debug.multi_session_view = true;
+ cx.notify();
+ });
+ cx.run_until_parked();
+ let select = cx.debug_bounds("debug-toolbar-focus-session").expect("multiSessionDebug shows the session select");
+ cx.simulate_mouse_down(select.center(), gpui::MouseButton::Left, gpui::Modifiers::none());
+ let items = workbench.read_with(cx, |workbench, _| {
+ workbench.context_menu.as_ref().expect("the select opens its options").levels[0].actions.iter().filter_map(|action| match action {
+ MenuAction::Command { id, title, checked, .. } => Some((id.clone(), title.clone(), *checked)),
+ _ => None,
+ }).collect::<Vec<_>>()
+ });
+ assert_eq!(items.iter().map(|(_, title, checked)| (title.as_str(), *checked)).collect::<Vec<_>>(), [("s", true), ("t", false)]);
+ workbench.update_in(cx, |workbench, window, cx| {
+ workbench.execute_command(&items[1].0, Vec::new(), window, cx);
+ });
+ cx.run_until_parked();
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.debug.focus.session.clone()), Some("t".into()));
+ }
+
+ fn set_toolbar_location(workbench: &gpui::Entity<Workbench>, location: &str, cx: &mut gpui::VisualTestContext) {
+ workbench.update_in(cx, |workbench, _, cx| {
+ let user = std::env::temp_dir().join(format!("vsrustium-{}", crate::test_name()));
+ let mut settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None);
+ settings.update_value("debug.toolBarLocation", Some(&json!(location)), config::service::Target::User, None, &[]).unwrap();
+ std::fs::remove_dir_all(&user).unwrap();
+ *workbench.settings.lock().unwrap() = settings;
+ workbench.show_debug_view(cx);
+ cx.notify();
+ });
+ cx.run_until_parked();
+ }
+
+ /// debugToolBar.ts `debugViewTitleItems`: docked, the toolbar's items are the Run and Debug title's, not floating.
+ #[gpui::test]
+ fn a_docked_toolbar_draws_in_the_run_and_debug_title(cx: &mut TestAppContext) {
+ let (workbench, cx) = stopped(cx);
+ set_toolbar_location(&workbench, "docked", cx);
+ assert!(cx.debug_bounds("debug-toolbar-stop-dropdown").is_some(), "Stop and its dropdown are in the title");
+ let title = cx.debug_bounds("debug-title-actions").expect("the Run and Debug title draws");
+ let stop = cx.debug_bounds("debug-toolbar-stop-dropdown").unwrap();
+ assert!(title.contains(&stop.center()), "{title:?} {stop:?}");
+ assert!(cx.debug_bounds("debug-toolbar").is_none(), "no floating toolbar");
+ }
+
+ /// debugToolBar.ts: with `commandCenter`, the command center shows the toolbar's actions before its label.
+ #[gpui::test]
+ fn the_command_center_location_draws_the_actions_in_the_command_center(cx: &mut TestAppContext) {
+ let (workbench, cx) = stopped(cx);
+ set_toolbar_location(&workbench, "commandCenter", cx);
+ let actions = cx.debug_bounds("command-center-debug").expect("the command center shows the debug actions");
+ let label = cx.debug_bounds("command-center-label").unwrap();
+ assert!(actions.right() <= label.left(), "{actions:?} {label:?}");
+ assert!(workbench.read_with(cx, |workbench, _| workbench.command_center_debugging()), "statusbarColorProvider.ts colors the command center");
+ assert!(cx.debug_bounds("debug-toolbar").is_none(), "no floating toolbar");
+ }
+
+ /// menuEntryActionViewItem.ts `updateAltState`: Alt shows Stop's alt, Disconnect.
+ #[gpui::test]
+ fn alt_swaps_stop_for_disconnect(cx: &mut TestAppContext) {
+ let (workbench, cx) = stopped(cx);
+ let ids = |alt: bool, cx: &mut gpui::VisualTestContext| workbench.update_in(cx, |workbench, window, _| {
+ let context = workbench.key_context(window);
+ workbench.debug_toolbar_actions(&context, alt).into_iter().map(|(id, ..)| id).collect::<Vec<_>>()
+ });
+ let without_alt = ids(false, cx);
+ assert!(without_alt.contains(&"workbench.action.debug.stop".to_owned()), "{without_alt:?}");
+ let with_alt = ids(true, cx);
+ assert!(with_alt.contains(&"workbench.action.debug.disconnect".to_owned()) && !with_alt.contains(&"workbench.action.debug.stop".to_owned()), "{with_alt:?}");
+ }
+}
diff --git a/native/crates/app/src/workbench/debug_view.rs b/native/crates/app/src/workbench/debug_view.rs
index 5e4221fc6e3..c25c6747e59 100644
--- a/native/crates/app/src/workbench/debug_view.rs
+++ b/native/crates/app/src/workbench/debug_view.rs
@@ -59,6 +59,11 @@ pub struct DebugView {
pub widget_view: super::input_box_view::InputView,
pub widget_focus: gpui::FocusHandle,
pub toolbar_drag: Option<super::debug_toolbar::ToolbarDrag>,
+ /// The Stop button's dropdown chevron, which the `MenuId.DebugToolBarStop` menu opens under.
+ pub stop_dropdown_bounds: std::rc::Rc<std::cell::Cell<gpui::Bounds<gpui::Pixels>>>,
+ pub focus_session_bounds: std::rc::Rc<std::cell::Cell<gpui::Bounds<gpui::Pixels>>>,
+ /// The `workbench.action.debug.focusProcess.{index}` commands the toolbar's session select registered.
+ pub focus_session_commands: usize,
pub exception: Option<super::exception_widget::ExceptionWidget>,
/// variablesView.ts builds its tree in `renderBody`, the first time the view shows.
pub variables_view_created: bool,
@@ -90,6 +95,9 @@ impl DebugView {
widget_view: Default::default(),
widget_focus: cx.focus_handle(),
toolbar_drag: None,
+ stop_dropdown_bounds: Default::default(),
+ focus_session_bounds: Default::default(),
+ focus_session_commands: 0,
exception: None,
variables_view_created: false,
expand_first_scope: false,
@@ -306,7 +314,11 @@ impl Workbench {
let context = self.view_container_context("debug", window);
let holds = |expr: &Option<crate::contextkey::Expr>| expr.as_ref().is_none_or(|expr| expr.evaluate(&context));
let foreground = self.foreground_or("icon.foreground");
- let mut items: Vec<&crate::menus::MenuItem> = self.menus.iter().filter(|item| item.menu == MenuId::ViewContainerTitle && item.group == "navigation" && holds(&item.when)).collect();
+ // debugToolBar.ts `debugViewTitleItems`: the toolbar's items, docked in the title while a session runs.
+ let docked = context["debugState"] != "inactive" && context["config.debug.toolBarLocation"] == "docked";
+ let mirrored = |item: &crate::menus::MenuItem| item.menu == MenuId::DebugToolBar && docked;
+ let mut items: Vec<&crate::menus::MenuItem> = self.menus.iter().filter(|item| (item.menu == MenuId::ViewContainerTitle || mirrored(item)) && item.group == "navigation" && holds(&item.when)).collect();
+ let stop_actions = if docked { crate::menus::menu_actions(&self.menus, MenuId::DebugToolBarStop, &context) } else { Vec::new() };
items.sort_by(|a, b| a.order.total_cmp(&b.order).then_with(|| a.title.cmp(&b.title)));
// debugViewlet.css `.has-start-debug-action-item > .title-actions`, padding.css `flex: 2`: only the launch picker
// shrinks inside them.
@@ -314,6 +326,13 @@ impl Workbench {
let mut actions = div().debug_selector(|| "debug-title-actions".into()).flex().items_center().justify_end().gap(px(4.)).when(has_start, |actions| actions.flex_grow(2.).flex_basis(px(0.)).min_w_0());
for item in items {
actions = actions.child(match &item.entry {
+ Entry::Command { id, precondition, alt, .. } if item.menu == MenuId::DebugToolBar => {
+ let (id, title, enabled) = match alt.as_ref().filter(|alt| window.modifiers().alt && holds(&alt.precondition)) {
+ Some(alt) => (alt.id.clone(), alt.title.clone(), true),
+ None => (id.clone(), item.title.clone(), holds(precondition)),
+ };
+ self.debug_toolbar_item(id, title, enabled, &context, &stop_actions, window, cx)
+ }
Entry::Command { id, .. } if id == "workbench.action.debug.start" => self.start_debug_item(cx).into_any_element(),
Entry::Command { id, precondition, .. } if id == "workbench.action.debug.configure" => self.search_action("gear", "workbench.action.debug.configure", holds(precondition), cx).flex_shrink_0().into_any_element(),
Entry::Command { id, .. } => self.command_button(id, item.title.clone(), Vec::new(), foreground, cx).flex_shrink_0().into_any_element(),
diff --git a/port/fixtures/ui-pair/debug/toolbar.json b/port/fixtures/ui-pair/debug/toolbar.json
new file mode 100644
index 00000000000..2d6e4bd68c7
--- /dev/null
+++ b/port/fixtures/ui-pair/debug/toolbar.json
@@ -0,0 +1,69 @@
+[
+ {
+ "wait": 25000
+ },
+ {
+ "key": "f9",
+ "foreground": true
+ },
+ {
+ "wait": 1000
+ },
+ {
+ "hotkey": [
+ "cmd",
+ "p"
+ ],
+ "foreground": true
+ },
+ {
+ "wait": 1000
+ },
+ {
+ "type": "app.js"
+ },
+ {
+ "wait": 1000
+ },
+ {
+ "key": "return",
+ "foreground": true
+ },
+ {
+ "wait": 1000
+ },
+ {
+ "hotkey": [
+ "ctrl",
+ "g"
+ ],
+ "foreground": true
+ },
+ {
+ "wait": 500
+ },
+ {
+ "type": "5"
+ },
+ {
+ "key": "return",
+ "foreground": true
+ },
+ {
+ "wait": 500
+ },
+ {
+ "key": "f9",
+ "foreground": true
+ },
+ {
+ "key": "f5",
+ "foreground": true
+ },
+ {
+ "wait": 9000
+ },
+ {
+ "shot": "stopped"
+ }
+]
diff --git a/port/ledger.md b/port/ledger.md
index 7aae21c033e..ae1dee70f59 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 S] comment_node.rs: with a comment in edit, its reactions row sits about 3px left of the reference's (port/results/language-features.md, `steps-comment-menus.json` shot `editing`) | Done: a reply and an edit form per thread and comment, open together (commentReply.ts per CommentThreadWidget): cargo test -p app two_threads_keep_their_reply_forms_open_together; a zone sized by the drawn comment bodies: cargo test -p app a_wrapped_comment_body_grows_its_zone; next/previous thread and Focus Comment on Current Line focus the thread's comments (`commentFocused`, Up/Down between comments, Escape collapses and selects the range): cargo test -p app the_reached_thread_takes_the_focus. Done in diff editors: glyphs, commenting ranges (asked for every side of every multi diff file), range highlights and zones on both sides of the diff editor and of each multi diff file, the other side aligned by a diagonal fill (workbench/editor_view/diff_editor_view.rs, multi_diff_editor_view.rs, diff_editor.rs `additional_heights`): cargo test -p app diff comment; ui-pair `portComments.openDiff` modified, original and multi. Floating widgets on a diff's original side and on both sides of each multi diff file (comment_thread_floating.rs `FloatingHost`, multi_diff_editor_view.rs `multi_diff_floating_hosts`), with `FloatingWidgetRoom` growing a file below its last line (commentThreadFloatingWidgetRoom.ts, `FileDiff.room`): cargo test -p app floating room multi_diff; ui-pair `portComments.openDiff` original and multi with the floating style. Range decorations (commentThreadRangeDecorator.ts and the floating empty-range line, workbench/comment_thread_widget.rs `comment_range_highlights`): cargo test -p app comment_thread_floating. The floating thread style (`comments.thread.experimental.style: floating`; workbench/comment_thread_floating_layout.rs with commentThreadFloatingWidget.test.ts ported, workbench/comment_thread_floating.rs: placement beside the code or its lines in code order, the outline and connector, title drag, edge resize, double-click reset, the layout kept per thread, wheel to the editor): cargo test -p app comment_thread_floating, ui-pair steps-comment-floating.json (port/results/language-features.md Floating comment threads). Done: the Comments panel (workbench/comments_view.rs: resources, threads with author, relative time, first line, range and replies, the unresolved badge, a markdown preview's images as "Image: {alt}" (cargo test -p app a_markdown_comment_previews_its_first_rendered_block), the filter box with Show Resolved/Unresolved and Sort By, its history in the memento's `filterHistory`, Escape and Cmd+Down while `commentsFilterFocus` (cargo test -p app the_filter_keeps_its_history_and_escape_clears_it; no match highlights, as commentsTreeViewer.ts's renderers ignore the filter data), Collapse/Expand All, row selection and keys; hideIfEmpty; a thread row's `commentsView/commentThread/context` inline actions and context menu with the built-in Reply, which reveals the thread with its zone expanded and reply open: cargo test -p app the_thread_menu_replies_to_the_thread), the gutter glyph that toggles the thread (workbench/editor_view/comment_glyph.rs) and the thread widget (workbench/comment_thread_widget.rs: zone, state colors, head with `comments/commentThread/title` actions and Collapse, markdown comments with `code` spans on no `textCodeBlock.background` (cargo test -p app a_comment_s_code_span_draws_no_code_block_background), reply form with `comments/commentThread/context` buttons and Cmd+Enter, the `comments/commentThread/additionalActions` bar under the body (commentThreadAdditionalActions.ts: separator, secondary buttons, a submenu as ButtonWithDropdown, at most 4, in the zone height and the floating widths): cargo test -p app additional_actions_show_under_the_body_and_run_with_the_thread; ui-pair steps-comment-additional.json), each comment (workbench/comment_node.rs: `comments/comment/title` actions, edit mode with `comments/comment/context` buttons, reactions and their picker), commenting ranges with the add glyph, Add Comment and template threads (workbench/commenting_ranges.rs), the comment commands (workbench/comment_navigation.rs: Collapse/Expand All, Expand Unresolved, Toggle Editor Commenting, Focus Comment on Current Line, Dismiss Comment, next/previous thread, commented range and commenting range, reached at the provider's columns unless it holds the cursor: cargo test -p app a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor) and the comments accessibility help: cargo test -p app comment; ui-pair port/results/language-features.md (Comments, Comment editing and commands); Escape keeps a new template open as the reference does (ui-pair steps-comment-escape-typed.json, cargo test -p app dismissing_a_new_template_keeps_it_open). The reply and edit inputs are code editors (simpleCommentEditor.ts: a `comment`-scheme markdown model, word wrap, no glyph margin, line numbers or folding, `scrollBeyondLastLine` false, 5 to 25 lines by `calculateEditorHeight`) that take the focus with `commentEditorFocused`, Cmd+Enter submits and Escape hides; the host gets the input's document and no text editor (workbench/comment_thread_widget.rs `open_comment_editor`, workbench/editor.rs `comment_editor`): cargo test -p app an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions; ui-pair steps-comment-reply-editor.json (reply-empty, reply-lines, reply-grown). Comments panel rows: 4px pane inset, 4px radius and the tree's indent guides as the Problems tree (cargo test -p app rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides; ui-pair steps-comments.json: chevron, name and thread line at the reference's x and y) |
| workbench/contrib/customEditor | workbench contribution | M17 | verified | | Each editor of a custom text editor's resource, the one opened in another group and a split's copy, has a webview of its own (customEditorInput.ts: cargo test -p app each_group_s_custom_text_editor_has_its_own_webview); Opening a custom text editor with `options.selection` reveals it in the panel and leaves the text model's cursor (cargo test -p app a_custom_text_editor_s_navigation_drives_the_outline); A custom document open in another group moves to the active one, or with `supportsMultipleEditorsPerDocument` gets a second editor there (editorResolverService.ts `moveExistingEditorForResource`: cargo test -p app a_custom_document_open_in_another_group_moves_to_the_active_one a_custom_document_with_multiple_editors_opens_one_more_in_the_active_group); `workbench.editorAssociations` merged as editorResolverService.ts `getAllUserAssociationsForSetting`: the workspace's globs before the default's and user's (cargo test -p app a_workspace_association_wins_over_a_user_one_of_the_same_length); Reopen Editor With puts a closed custom or notebook editor's replacement in its place, pinned (editorGroupView.ts `replaceEditors`: cargo test -p app a_reopened_preview_keeps_its_tab_position); Two default editors for one resource warn once and remember the choice per extension glob (editorResolverService.ts `doHandleConflictingDefaults`: cargo test -p app two_default_editors_for_a_resource_ask_once_which_to_keep); the memento's custom editors until the extensions register (cargo test -p app markdown_editor_files_offer); editor resolution by `workbench.editorAssociations` and contributed selectors (editorResolverService.ts ranks), Reopen Editor With picker (`reopenActiveEditorWith`, `workbench.action.reopenWithEditor`), `_workbench.open`, `_workbench.openWith`; `FIXTURE=custom-editor-tests port/tools/webview-check` 8/8; cargo test -p app custom_editors |
-| workbench/contrib/debug | workbench contribution | M16 | ported | [3 S] breakpoint_widget.rs:246: a breakpoint on the stopped line draws the full breakpoint circle inside the stack frame outline where debug.contribution.css's `--vscode-icon-debug-stackframe-dot` overlay draws a small dot (ui-pair `debug/call-stack-menu.json` stopped.png, line 5) <br> [3 S] debug: the Run and Debug activity item shows no badge while stopped where the reference shows "1" (ui-pair `debug/call-stack-menu.json` stopped.png; its source not traced) <br> [3 M] variable_menu.rs: no View Binary Data: debug.contribution.ts registers it only in the rows' `inline` group, and the port's Variables, Watch and hover rows have no inline action bar, no `vscode-debug-memory` file system and no hex editor install prompt (variablesView.ts `VIEW_MEMORY_ID`) <br> [3 S] debug status bar: the debug entry reads "Launch server.js" where the reference reads "Launch server.js (debug-node)" (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] debug: while stopped the panel shows a Problems tab beside Debug Console where the reference shows Debug Console alone (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] variable_menu.rs: Copy Value, Copy Expression, Edit Expression and Remove Expression from their keys (Cmd+C, Cmd+Alt+C, Enter, Cmd+Backspace in the views) do nothing: the views keep no tree selection to act on <br> [3 S] variable_menu.rs: a Variables row's menu passes `container` as `{ variablesReference }` only, where variablesView.ts `getVariablesContext` passes the scope's or parent variable's protocol object <br> [3 L] debug visualizers: debugVisualizers.ts, `VisualizedExpression` rows in the Variables view and the hover not ported <br> [3 S] lazy variables: the port's side of ui-pair `debug/lazy-variable.json` eye-hover.png, the eye button's "Click to expand" hover over the debug hover, not yet taken (the Studio's GUI lane stopped at a system prompt); a gpui test covers it <br> [3 S] debug_hover.rs: the hover's find widget starts about 20px right of the reference's and is narrower, and a name matching the find draws on a red box where the reference only recolors it (ui-pair `debug/hover-find.json` hover-find.png) <br> [3 S] debug_view.rs: the Run and Debug container title reads "Run and De..." where the reference reads "Run And D..." (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] view_visibility.rs: the Run and Debug container's `...` menu has no "Debug Console" item and separator above the view toggles, and its button shows no pressed background while the menu is open (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 M] debug_toolbar.rs: debugToolBar.ts's Focus Session select box (`FocusSessionActionViewItem`, `multiSessionDebug`), the Stop button's `MenuId.DebugToolBarStop` dropdown, Alt over Stop or Disconnect showing its alt command, the docked toolbar in the Run and Debug title (`debug.toolBarLocation` docked) and the Command Center's Debug submenu (`commandCenter`) are not drawn <br> [3 S] debug_service.rs: `guess_debugger`'s Select Debugger picker has no "More {0} options..." picks of the dynamic configuration providers (debugAdapterManager.ts `getDynamicProviders`), which the port does not have <br> [3 S] debugQuickAccess.ts: the picker has no dynamic configuration providers' `{label}...` picks with the `contributed` description, where the reference lists `Node.js...` (ui-pair `debug/quick-access.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] debug_service.rs: a stop opens the Run and Debug view for any reason, where debugSession.ts opens it only for `reason === 'breakpoint'`: at the `debugger;` of port/fixtures/debug-node/lazy.js the reference stays on the Explorer (ui-pair `debug/lazy-variable.json`) <br> [3 S] debug_view.rs: scope rows (`Local: main`, `Global`) draw in the regular weight where debugViewlet.css `.debug-pane .scope` sets bold (ui-pair `debug/variables-menu.json`) <br> [3 M] debug_editor: the stopped line has no `debug-top-stack-frame-column` inline arrow before the frame's column (callStackEditorContribution.ts `makeStackFrameColumnDecoration`) and no inline breakpoint candidate dots (breakpointEditorContribution.ts, `breakpointLocations` request), and the glyph of a breakpoint the frame stops on draws a red filled shape where the reference draws the yellow outlined stack frame with a small red dot (ui-pair `debug/variables-menu.json`, line 5 of app.js) <br> [3 S] debug_toolbar.rs: the floating toolbar draws at the window's top over the title bar where the reference's sits below it over the editor tabs (ui-pair `debug/variables-menu.json`) | ui-pair port/fixtures/debug-node: gutter breakpoint, F5 stops at it, Variables (Local: main), Call Stack with folded deemphasized frames, Breakpoints, Debug Console REPL, toolbar, status bar entry; cargo test -p app debug; the launch picker shrinks to an ellipsis beside a `flex: 1` title (cargo test -p app launch_picker_shrinks; ui-pair menus/view-container-title.json); the container's `...` menu opens below the button, left aligned in a left side bar (cargo test -p app the_debug_container_more_actions); Select Debugger groups the Suggested debuggers and ends with Install, and a file without a debugger offers to find one (cargo test -p app debug_service); own getters come as lazy rows whose `$(eye)` button matches the reference's (ui-pair `debug/lazy-variable.json` hover.png), and the workbench hover draws over the debug hover (cargo test -p app a_workbench_hover_draws_over_the_debug_hover); a complex hover's tree height counts the editor's top in its group, six rows above line 3 of app.js as the reference (cargo test -p app the_tree_height_keeps_an_above_hover_off_the_hovered_line; ui-pair `debug/hover-find.json`); Call Stack frame names, Variables, Watch and hover rows' expression labels in 11px Menlo (cargo test -p app watch_expression_labels_use_the_monospace_font; ui-pair `debug/call-stack-menu.json` stopped.png); Breakpoints header `$(warning)` hint for the debugger's `strings.unverifiedBreakpoints` after breakpointsView.ts's 4s `hintDelayer`, restarted by every breakpoint change (cargo test -p app debug_view; ui-pair port/fixtures/ui-pair/debug/unverified-breakpoints.json with js-debug's unbound math.test.js breakpoint); preLaunchTask, postDebugTask, compound preLaunchTask and the restart tasks through debugTaskRunner.ts's runner with `debug.onTaskErrors`, the remembered task error choice and the slow task notification (cargo test -p app debug_task_runner); Run to Cursor's temporary breakpoint with debugService.ts `runTo`'s 2s verification wait, thread choice from the sessions that verified it, and removal at the next stop or session end (cargo test -p app debug_commands); Debug Console output styled by its SGR sequences with the theme's ANSI colors at contrast 4 (cargo test -p app debug_console debug::ansi); Debug Console filter box (replFilter.ts terms, "Showing N of M" badge, Cmd+F `repl.action.filter`, value and history in workspace storage) and session picker (consoles of the sessions with `hasSeparateRepl`, `mergeWithParent` children in the parent's, selection focuses the session or its stopped child), input history in workspace storage (`debug.repl.history`) (cargo test -p app debug_console); ended sessions stay inactive in the console picker with their output until Clear Console or a start of the same configuration (debugModel.ts `addSession`, repl.ts `sessionsToIgnore`; cargo test -p app an_ended_session_stays_in_the_picker_until_cleared_or_started_again); debugUtils.ts `saveAllBeforeDebugStart` before a start (not for a child session or with `suppressSaveBeforeStart`) and a restart, by `debug.saveBeforeStart` (cargo test -p app a_start_or_restart_saves_the_dirty_editors); triggered breakpoints: debugSession.ts `enableDependentBreakpoints` by `hitBreakpointIds` or the top frame's position sets `sessionsDidTrigger` and sends the files again, continue and the steps wait for it up to 1.5 s (`waitForTriggeredBreakpoints`), a restart clears it (cargo test -p app a_hit_breakpoint_enables_its_dependents); `debug.inlineValues` after the focused frame's lines: the `InlineValuesProvider`s' values (`$provideInlineValues`) or the most specific scopes' variables named on each line, their `formatHoverContent` hover, the 100ms removal on continue (cargo test -p app debug_inline_values); debugHover.ts in place of the editor hover while a frame is focused in the file: the `$provideEvaluatableExpression` range or the dotted path under the mouse, `hover` evaluation or the scopes' variable, Cmd+K Cmd+I focused, Alt for the editor hover, the tree's list keys, Alt+click and Alt+Space toggling the loaded subtree (abstractTree.ts `onSpace`: cargo test -p app alt_click_toggles_the_loaded_subtree), a row click's tree focus, selection and twistie toggle (abstractTree.ts `onViewPointer`: cargo test -p app a_click_on_a_hover_row_focuses_the_tree) and `layoutTree` height, the glyph margin's lockout release, the caret edge nearer the mouse, lazy rows' `$(eye)` button (baseDebugView.ts `lazyButton`, `debug.autoExpandLazyVariables`; cargo test -p app a_lazy_row_takes_its_value_from_the_eye_button), the tree's find widget (abstractTree.ts `FindController`: cargo test -p app the_find_widget_filters_the_hover_tree; ui-pair port/fixtures/ui-pair/debug/hover-find.json) (cargo test -p app debug_hover; ui-pair port/fixtures/debug-node `greeting` and `numbers` hovers); disassemblyView.ts: the `disassemble` requests around the focused frame's instruction pointer, the glyph click's instruction breakpoint (`setInstructionBreakpoints`), the Breakpoints view's instruction rows, `instruction` stepping granularity while the view is active, the table's focus on reload, the list keys' focus, selection and clear, Page Up/Down over the rows' own heights, the hover column border (cargo test -p app disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints); Call Stack: js-debug's compact child session merged into its parent's row with modernUI's capitalized state label, the folded frames' common source `origin` (callStackView.ts `CallStackCompressionDelegate`, `ShowMoreRenderer`: cargo test -p app debug_view), the frame's `line:column` count badge and the trees' list focus a right click moves to them (cargo test -p app a_right_clicked_call_stack_row_takes_the_list_focus); the floating toolbar from `MenuId.DebugToolBar` with the extensions' `debug/toolBar` items, and `debug/createConfiguration` items in Select Debugger (cargo test -p app the_debug_toolbar_and_create_configuration_menus_take_contributed_items; ui-pair port/fixtures/ui-pair/debug/call-stack-menu.json); Variables, Watch and hover row context menus (debug.contribution.ts `DebugVariablesContext`, `DebugWatchContext`, `DebugHoverContext`, watchExpressionsView.ts Copy Expression and Copy All, Set Value through `setVariable` or `setExpression` with the adapter's error under the input, Break on Value Read/Change/Access from the `dataBreakpointInfo` answer: cargo test -p app variable_menu; ui-pair port/fixtures/ui-pair/debug/variables-menu.json); a stop reveals its line centered only when outside the view, after the editor's first layout (debugSource.ts `openInEditor` `CenterIfOutsideViewport`: cargo test -p app a_stop_on_a_line_in_view_keeps_the_scroll; ui-pair port/fixtures/ui-pair/debug/lazy-variable.json); debugQuickAccess.ts `debug ` picks: the launch configurations by folder with Most Recent, their gear to launch.json, Add Configuration..., and Debug: Select and Start Debugging opening it (cargo test -p app the_debug_picker_lists_and_starts_the_launch_configurations; ui-pair port/fixtures/ui-pair/debug/quick-access.json); the first cheap scope expands on a focus change only once the Variables view has shown, as variablesView.ts `renderBody` sets its first input unexpanded (cargo test -p app the_first_scope_expands_only_once_the_variables_view_exists; ui-pair port/fixtures/ui-pair/debug/variables-menu.json `Local: main` collapsed in both); shortcuts in port/notes.md |
+| workbench/contrib/debug | workbench contribution | M16 | ported | [3 S] breakpoint_widget.rs:246: a breakpoint on the stopped line draws the full breakpoint circle inside the stack frame outline where debug.contribution.css's `--vscode-icon-debug-stackframe-dot` overlay draws a small dot (ui-pair `debug/call-stack-menu.json` stopped.png, line 5) <br> [3 S] debug: the Run and Debug activity item shows no badge while stopped where the reference shows "1" (ui-pair `debug/call-stack-menu.json` stopped.png; its source not traced) <br> [3 M] variable_menu.rs: no View Binary Data: debug.contribution.ts registers it only in the rows' `inline` group, and the port's Variables, Watch and hover rows have no inline action bar, no `vscode-debug-memory` file system and no hex editor install prompt (variablesView.ts `VIEW_MEMORY_ID`) <br> [3 S] debug status bar: the debug entry reads "Launch server.js" where the reference reads "Launch server.js (debug-node)" (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] debug: while stopped the panel shows a Problems tab beside Debug Console where the reference shows Debug Console alone (ui-pair `debug/variables-menu.json` watch-menu.png; its source not traced) <br> [3 S] variable_menu.rs: Copy Value, Copy Expression, Edit Expression and Remove Expression from their keys (Cmd+C, Cmd+Alt+C, Enter, Cmd+Backspace in the views) do nothing: the views keep no tree selection to act on <br> [3 S] variable_menu.rs: a Variables row's menu passes `container` as `{ variablesReference }` only, where variablesView.ts `getVariablesContext` passes the scope's or parent variable's protocol object <br> [3 L] debug visualizers: debugVisualizers.ts, `VisualizedExpression` rows in the Variables view and the hover not ported <br> [3 S] lazy variables: the port's side of ui-pair `debug/lazy-variable.json` eye-hover.png, the eye button's "Click to expand" hover over the debug hover, not yet taken (the Studio's GUI lane stopped at a system prompt); a gpui test covers it <br> [3 S] debug_hover.rs: the hover's find widget starts about 20px right of the reference's and is narrower, and a name matching the find draws on a red box where the reference only recolors it (ui-pair `debug/hover-find.json` hover-find.png) <br> [3 S] debug_view.rs: the Run and Debug container title reads "Run and De..." where the reference reads "Run And D..." (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] view_visibility.rs: the Run and Debug container's `...` menu has no "Debug Console" item and separator above the view toggles, and its button shows no pressed background while the menu is open (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 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`) <br> [3 S] debug_toolbar.rs: with `debug.toolBarLocation` `commandCenter` the label sits right after the actions where the reference centers it behind a `•` separator (ui-pair `debug/toolbar.json`) | ui-pair port/fixtures/debug-node: gutter breakpoint, F5 stops at it, Variables (Local: main), Call Stack with folded deemphasized frames, Breakpoints, Debug Console REPL, toolbar, status bar entry; cargo test -p app debug; the launch picker shrinks to an ellipsis beside a `flex: 1` title (cargo test -p app launch_picker_shrinks; ui-pair menus/view-container-title.json); the container's `...` menu opens below the button, left aligned in a left side bar (cargo test -p app the_debug_container_more_actions); Select Debugger groups the Suggested debuggers and ends with Install, and a file without a debugger offers to find one (cargo test -p app debug_service); own getters come as lazy rows whose `$(eye)` button matches the reference's (ui-pair `debug/lazy-variable.json` hover.png), and the workbench hover draws over the debug hover (cargo test -p app a_workbench_hover_draws_over_the_debug_hover); a complex hover's tree height counts the editor's top in its group, six rows above line 3 of app.js as the reference (cargo test -p app the_tree_height_keeps_an_above_hover_off_the_hovered_line; ui-pair `debug/hover-find.json`); Call Stack frame names, Variables, Watch and hover rows' expression labels in 11px Menlo (cargo test -p app watch_expression_labels_use_the_monospace_font; ui-pair `debug/call-stack-menu.json` stopped.png); Breakpoints header `$(warning)` hint for the debugger's `strings.unverifiedBreakpoints` after breakpointsView.ts's 4s `hintDelayer`, restarted by every breakpoint change (cargo test -p app debug_view; ui-pair port/fixtures/ui-pair/debug/unverified-breakpoints.json with js-debug's unbound math.test.js breakpoint); preLaunchTask, postDebugTask, compound preLaunchTask and the restart tasks through debugTaskRunner.ts's runner with `debug.onTaskErrors`, the remembered task error choice and the slow task notification (cargo test -p app debug_task_runner); Run to Cursor's temporary breakpoint with debugService.ts `runTo`'s 2s verification wait, thread choice from the sessions that verified it, and removal at the next stop or session end (cargo test -p app debug_commands); Debug Console output styled by its SGR sequences with the theme's ANSI colors at contrast 4 (cargo test -p app debug_console debug::ansi); Debug Console filter box (replFilter.ts terms, "Showing N of M" badge, Cmd+F `repl.action.filter`, value and history in workspace storage) and session picker (consoles of the sessions with `hasSeparateRepl`, `mergeWithParent` children in the parent's, selection focuses the session or its stopped child), input history in workspace storage (`debug.repl.history`) (cargo test -p app debug_console); ended sessions stay inactive in the console picker with their output until Clear Console or a start of the same configuration (debugModel.ts `addSession`, repl.ts `sessionsToIgnore`; cargo test -p app an_ended_session_stays_in_the_picker_until_cleared_or_started_again); debugUtils.ts `saveAllBeforeDebugStart` before a start (not for a child session or with `suppressSaveBeforeStart`) and a restart, by `debug.saveBeforeStart` (cargo test -p app a_start_or_restart_saves_the_dirty_editors); triggered breakpoints: debugSession.ts `enableDependentBreakpoints` by `hitBreakpointIds` or the top frame's position sets `sessionsDidTrigger` and sends the files again, continue and the steps wait for it up to 1.5 s (`waitForTriggeredBreakpoints`), a restart clears it (cargo test -p app a_hit_breakpoint_enables_its_dependents); `debug.inlineValues` after the focused frame's lines: the `InlineValuesProvider`s' values (`$provideInlineValues`) or the most specific scopes' variables named on each line, their `formatHoverContent` hover, the 100ms removal on continue (cargo test -p app debug_inline_values); debugHover.ts in place of the editor hover while a frame is focused in the file: the `$provideEvaluatableExpression` range or the dotted path under the mouse, `hover` evaluation or the scopes' variable, Cmd+K Cmd+I focused, Alt for the editor hover, the tree's list keys, Alt+click and Alt+Space toggling the loaded subtree (abstractTree.ts `onSpace`: cargo test -p app alt_click_toggles_the_loaded_subtree), a row click's tree focus, selection and twistie toggle (abstractTree.ts `onViewPointer`: cargo test -p app a_click_on_a_hover_row_focuses_the_tree) and `layoutTree` height, the glyph margin's lockout release, the caret edge nearer the mouse, lazy rows' `$(eye)` button (baseDebugView.ts `lazyButton`, `debug.autoExpandLazyVariables`; cargo test -p app a_lazy_row_takes_its_value_from_the_eye_button), the tree's find widget (abstractTree.ts `FindController`: cargo test -p app the_find_widget_filters_the_hover_tree; ui-pair port/fixtures/ui-pair/debug/hover-find.json) (cargo test -p app debug_hover; ui-pair port/fixtures/debug-node `greeting` and `numbers` hovers); disassemblyView.ts: the `disassemble` requests around the focused frame's instruction pointer, the glyph click's instruction breakpoint (`setInstructionBreakpoints`), the Breakpoints view's instruction rows, `instruction` stepping granularity while the view is active, the table's focus on reload, the list keys' focus, selection and clear, Page Up/Down over the rows' own heights, the hover column border (cargo test -p app disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints); Call Stack: js-debug's compact child session merged into its parent's row with modernUI's capitalized state label, the folded frames' common source `origin` (callStackView.ts `CallStackCompressionDelegate`, `ShowMoreRenderer`: cargo test -p app debug_view), the frame's `line:column` count badge and the trees' list focus a right click moves to them (cargo test -p app a_right_clicked_call_stack_row_takes_the_list_focus); the floating toolbar from `MenuId.DebugToolBar` with the extensions' `debug/toolBar` items, and `debug/createConfiguration` items in Select Debugger (cargo test -p app the_debug_toolbar_and_create_configuration_menus_take_contributed_items; ui-pair port/fixtures/ui-pair/debug/call-stack-menu.json); the toolbar's Focus Session select with `multiSessionDebug`, Stop's `MenuId.DebugToolBarStop` dropdown, Alt showing the alt command, `debug.toolBarLocation` docked in the Run and Debug title and `commandCenter` in the command center (debugToolBar.ts, debugActionViewItems.ts `FocusSessionActionViewItem`, commandCenterControl.ts `CommandCenterCenterViewItem`: cargo test -p app debug_toolbar; ui-pair port/fixtures/ui-pair/debug/toolbar.json with `SETTINGS` docked and commandCenter); Variables, Watch and hover row context menus (debug.contribution.ts `DebugVariablesContext`, `DebugWatchContext`, `DebugHoverContext`, watchExpressionsView.ts Copy Expression and Copy All, Set Value through `setVariable` or `setExpression` with the adapter's error under the input, Break on Value Read/Change/Access from the `dataBreakpointInfo` answer: cargo test -p app variable_menu; ui-pair port/fixtures/ui-pair/debug/variables-menu.json); a stop reveals its line centered only when outside the view, after the editor's first layout (debugSource.ts `openInEditor` `CenterIfOutsideViewport`: cargo test -p app a_stop_on_a_line_in_view_keeps_the_scroll; ui-pair port/fixtures/ui-pair/debug/lazy-variable.json); debugQuickAccess.ts `debug ` picks: the launch configurations by folder with Most Recent, their gear to launch.json, Add Configuration..., and Debug: Select and Start Debugging opening it (cargo test -p app the_debug_picker_lists_and_starts_the_launch_configurations; ui-pair port/fixtures/ui-pair/debug/quick-access.json); the first cheap scope expands on a focus change only once the Variables view has shown, as variablesView.ts `renderBody` sets its first input unexpanded (cargo test -p app the_first_scope_expands_only_once_the_variables_view_exists; ui-pair port/fixtures/ui-pair/debug/variables-menu.json `Local: main` collapsed in both); shortcuts in port/notes.md |
| workbench/contrib/dropOrPasteInto | workbench contribution | M13 | verified | | commands.ts `configurePreferredPasteAction`/`configurePreferredDropAction`: the widgets' menus and the Paste As pick open user settings JSON at `editor.pasteAs.preferences` or `editor.dropIntoEditor.preferences` (workbench/paste_edits.rs); the `editor.pasteAs.*` and `editor.dropIntoEditor.*` settings come from core-settings.json; ui-pair paste-menu (port/results/language-features.md) |
| workbench/contrib/editSessions | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/contrib/editTelemetry | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |