debugger: Add breakpoint list to the empty state of debug panel (#32930)
 Release Notes: - Debugger: Added breakpoint list to the empty debug panel
This commit is contained in:
parent
d8eb341f9b
commit
65067dad9e
3 changed files with 44 additions and 33 deletions
|
@ -1,6 +1,7 @@
|
|||
use crate::persistence::DebuggerPaneItem;
|
||||
use crate::session::DebugSession;
|
||||
use crate::session::running::RunningState;
|
||||
use crate::session::running::breakpoint_list::BreakpointList;
|
||||
use crate::{
|
||||
ClearAllBreakpoints, Continue, CopyDebugAdapterArguments, Detach, FocusBreakpointList,
|
||||
FocusConsole, FocusFrames, FocusLoadedSources, FocusModules, FocusTerminal, FocusVariables,
|
||||
|
@ -72,6 +73,7 @@ pub struct DebugPanel {
|
|||
fs: Arc<dyn Fs>,
|
||||
is_zoomed: bool,
|
||||
_subscriptions: [Subscription; 1],
|
||||
breakpoint_list: Entity<BreakpointList>,
|
||||
}
|
||||
|
||||
impl DebugPanel {
|
||||
|
@ -99,6 +101,7 @@ impl DebugPanel {
|
|||
sessions: vec![],
|
||||
active_session: None,
|
||||
focus_handle,
|
||||
breakpoint_list: BreakpointList::new(None, workspace.weak_handle(), &project, cx),
|
||||
project,
|
||||
workspace: workspace.weak_handle(),
|
||||
context_menu: None,
|
||||
|
@ -1459,11 +1462,16 @@ impl Render for DebugPanel {
|
|||
.items_center()
|
||||
.justify_center()
|
||||
.child(
|
||||
h_flex()
|
||||
h_flex().size_full()
|
||||
.items_start()
|
||||
.gap_8()
|
||||
|
||||
.child(v_flex().items_start().min_w_1_3().h_full().p_1()
|
||||
.child(h_flex().px_1().child(Label::new("Breakpoints").size(LabelSize::Small)))
|
||||
.child(Divider::horizontal())
|
||||
.child(self.breakpoint_list.clone()))
|
||||
.child(Divider::vertical())
|
||||
.child(
|
||||
v_flex()
|
||||
v_flex().w_2_3().h_full().items_center().justify_center()
|
||||
.gap_2()
|
||||
.pr_8()
|
||||
.child(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue