Skip to content

Commit ff3a2a5

Browse files
xusheng6claude
andcommitted
Stop focusing debugger sidebar on every target stop
Only open the debugger sidebar once when a debug session starts (Launch/Attach/Connect), instead of on every navigation triggered by target stops. This prevents the sidebar from stealing focus away from other sidebars like Sidekick during debugging. Fixes #1032 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ecb5ed commit ff3a2a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/ui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,6 @@ void DebuggerUI::navigateDebugger(uint64_t address)
18281828
frame->navigate(m_controller->GetData(), address, true, true);
18291829
}
18301830

1831-
openDebuggerSideBar(frame);
18321831
m_context->refreshCurrentViewContents();
18331832
}
18341833

@@ -1991,6 +1990,8 @@ void DebuggerUI::updateUI(const DebuggerEvent& event)
19911990
auto* globalUI = GlobalDebuggerUI::GetForContext(m_context);
19921991
if (globalUI)
19931992
globalUI->SetDisplayingGlobalAreaWidgets(true);
1993+
1994+
openDebuggerSideBar();
19941995
}
19951996

19961997
switch (event.type)

0 commit comments

Comments
 (0)