Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

debugger: Add horizontal scrollbar for frame item and tooltip for variables (#41261)

Coenen Benjamin3e3618b3ffeb
diff --git a/crates/debugger_ui/src/session/running/stack_frame_list.rs b/crates/debugger_ui/src/session/running/stack_frame_list.rs
index 3fc7e8ce392..a8fabd327a3 100644
--- a/crates/debugger_ui/src/session/running/stack_frame_list.rs
+++ b/crates/debugger_ui/src/session/running/stack_frame_list.rs
@@ -566,6 +566,7 @@ impl StackFrameList {
this.activate_selected_entry(window, cx);
}))
.hover(|style| style.bg(cx.theme().colors().element_hover).cursor_pointer())
+ .overflow_x_scroll()
.child(
v_flex()
.gap_0p5()
diff --git a/crates/debugger_ui/src/session/running/variable_list.rs b/crates/debugger_ui/src/session/running/variable_list.rs
index f2b79523fe3..c69bdfbe7ca 100644
--- a/crates/debugger_ui/src/session/running/variable_list.rs
+++ b/crates/debugger_ui/src/session/running/variable_list.rs
@@ -1129,6 +1129,7 @@ impl VariableList {
this.color(Color::from(color))
}),
)
+ .tooltip(Tooltip::text(value))
}
})
.into_any_element()