Skip to content

Commit ca3c346

Browse files
authored
Don't auto-focus a "deemphasized" frame while debugging (microsoft#184962)
Fix microsoft#184640
1 parent a667642 commit ca3c346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/common/debugModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ export class Thread implements IThread {
528528
const firstAvailableStackFrame = callStack.find(sf => !!(sf &&
529529
((this.stoppedDetails?.reason === 'instruction breakpoint' || (this.stoppedDetails?.reason === 'step' && this.lastSteppingGranularity === 'instruction')) && sf.instructionPointerReference) ||
530530
(sf.source && sf.source.available && sf.source.presentationHint !== 'deemphasize')));
531-
return firstAvailableStackFrame || (callStack.length > 0 ? callStack[0] : undefined);
531+
return firstAvailableStackFrame;
532532
}
533533

534534
get stateLabel(): string {

0 commit comments

Comments
 (0)