debugger: Add 'open docs' button in the panel and mention onboarding in the docs (#32496)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-06-10 23:56:29 +02:00 committed by GitHub
parent 311e136e30
commit a4c5a2d4d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 11 deletions

View file

@ -605,6 +605,12 @@ impl DebugPanel {
}
})
};
let documentation_button = || {
IconButton::new("debug-open-documentation", IconName::CircleHelp)
.icon_size(IconSize::Small)
.on_click(move |_, _, cx| cx.open_url("https://zed.dev/docs/debugger"))
.tooltip(Tooltip::text("Open Documentation"))
};
Some(
div.border_b_1()
@ -840,7 +846,10 @@ impl DebugPanel {
),
)
.justify_around()
.when(is_side, |this| this.child(new_session_button())),
.when(is_side, |this| {
this.child(new_session_button())
.child(documentation_button())
}),
)
.child(
h_flex()
@ -881,7 +890,10 @@ impl DebugPanel {
window,
cx,
))
.when(!is_side, |this| this.child(new_session_button())),
.when(!is_side, |this| {
this.child(new_session_button())
.child(documentation_button())
}),
),
),
)