Add button to view dap logs (#34153)

Release Notes:

- N/A
This commit is contained in:
Julia Ryan 2025-07-09 13:51:45 -07:00 committed by GitHub
parent 9ab5e78b79
commit 2c41e10c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -16,13 +16,13 @@ doctest = false
test-support = [ test-support = [
"dap/test-support", "dap/test-support",
"dap_adapters/test-support", "dap_adapters/test-support",
"debugger_tools/test-support",
"editor/test-support", "editor/test-support",
"gpui/test-support", "gpui/test-support",
"project/test-support", "project/test-support",
"util/test-support", "util/test-support",
"workspace/test-support", "workspace/test-support",
"unindent", "unindent",
"debugger_tools"
] ]
[dependencies] [dependencies]
@ -69,7 +69,7 @@ ui.workspace = true
util.workspace = true util.workspace = true
workspace.workspace = true workspace.workspace = true
workspace-hack.workspace = true workspace-hack.workspace = true
debugger_tools = { workspace = true, optional = true } debugger_tools.workspace = true
unindent = { workspace = true, optional = true } unindent = { workspace = true, optional = true }
zed_actions.workspace = true zed_actions.workspace = true

View file

@ -622,6 +622,14 @@ impl DebugPanel {
.on_click(move |_, _, cx| cx.open_url("https://zed.dev/docs/debugger")) .on_click(move |_, _, cx| cx.open_url("https://zed.dev/docs/debugger"))
.tooltip(Tooltip::text("Open Documentation")) .tooltip(Tooltip::text("Open Documentation"))
}; };
let logs_button = || {
IconButton::new("debug-open-logs", IconName::ScrollText)
.icon_size(IconSize::Small)
.on_click(move |_, window, cx| {
window.dispatch_action(debugger_tools::OpenDebugAdapterLogs.boxed_clone(), cx)
})
.tooltip(Tooltip::text("Open Debug Adapter Logs"))
};
Some( Some(
div.border_b_1() div.border_b_1()
@ -873,6 +881,7 @@ impl DebugPanel {
.justify_around() .justify_around()
.when(is_side, |this| { .when(is_side, |this| {
this.child(new_session_button()) this.child(new_session_button())
.child(logs_button())
.child(documentation_button()) .child(documentation_button())
}), }),
) )
@ -922,6 +931,7 @@ impl DebugPanel {
)) ))
.when(!is_side, |this| { .when(!is_side, |this| {
this.child(new_session_button()) this.child(new_session_button())
.child(logs_button())
.child(documentation_button()) .child(documentation_button())
}), }),
), ),