mirror of https://github.com/microsoft/vscode.git
Use preserveFocus when focusing stack frames (#251964)
* Use preserveFocus when focusing stack frames * Add preserveFocus in openEditor call for disassembly view
This commit is contained in:
parent
49e7cf8dbb
commit
8f023e48c8
|
@ -542,10 +542,10 @@ export class StackFrame implements IStackFrame {
|
|||
async openInEditor(editorService: IEditorService, preserveFocus?: boolean, sideBySide?: boolean, pinned?: boolean): Promise<IEditorPane | undefined> {
|
||||
const threadStopReason = this.thread.stoppedDetails?.reason;
|
||||
if (this.instructionPointerReference &&
|
||||
(threadStopReason === 'instruction breakpoint' ||
|
||||
(threadStopReason === 'step' && this.thread.lastSteppingGranularity === 'instruction') ||
|
||||
((threadStopReason === 'instruction breakpoint' && !preserveFocus) ||
|
||||
(threadStopReason === 'step' && this.thread.lastSteppingGranularity === 'instruction' && !preserveFocus) ||
|
||||
editorService.activeEditor instanceof DisassemblyViewInput)) {
|
||||
return editorService.openEditor(DisassemblyViewInput.instance, { pinned: true, revealIfOpened: true });
|
||||
return editorService.openEditor(DisassemblyViewInput.instance, { pinned: true, revealIfOpened: true, preserveFocus });
|
||||
}
|
||||
|
||||
if (this.source.available) {
|
||||
|
|
Loading…
Reference in New Issue