parent
89a0490246
commit
0e4ddedb18
1 changed files with 6 additions and 1 deletions
|
@ -899,7 +899,12 @@ export class DebugSession implements IDebugSession {
|
|||
const promises = this.model.fetchCallStack(<Thread>thread);
|
||||
const focus = async () => {
|
||||
if (!event.body.preserveFocusHint && thread.getCallStack().length) {
|
||||
const focusedStackFrame = this.debugService.getViewModel().focusedStackFrame;
|
||||
if (!focusedStackFrame || focusedStackFrame.thread.session === this) {
|
||||
// Only take focus if nothing is focused, or if the focus is already on the current session
|
||||
await this.debugService.focusStackFrame(undefined, thread);
|
||||
}
|
||||
|
||||
if (thread.stoppedDetails) {
|
||||
if (thread.stoppedDetails.reason === 'breakpoint' && this.configurationService.getValue<IDebugConfiguration>('debug').openDebug === 'openOnDebugBreak' && !this.isSimpleUI) {
|
||||
await this.viewletService.openViewlet(VIEWLET_ID);
|
||||
|
|
Loading…
Reference in a new issue