解决反汇编页面中点击调试导航栏的调试按钮时,会退出反汇编视图的问题。

This commit is contained in:
chriswang521 2023-12-01 14:18:42 +08:00 committed by wangpenglong
parent f643dc4881
commit 5808428879
2 changed files with 3 additions and 2 deletions

View File

@ -162,7 +162,7 @@ class OpenDisassemblyViewAction extends EditorAction2 {
runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, ...args: any[]): void {
if (editor.hasModel()) {
const editorService = accessor.get(IEditorService);
editorService.openEditor(DisassemblyViewInput.instance, { pinned: true });
editorService.openEditor(DisassemblyViewInput.instance, { pinned: true, revealIfOpened: true });
}
}
}

View File

@ -464,7 +464,8 @@ export class StackFrame implements IStackFrame {
const threadStopReason = this.thread.stoppedDetails?.reason;
if (this.instructionPointerReference &&
(threadStopReason === 'instruction breakpoint' ||
(threadStopReason === 'step' && this.thread.lastSteppingGranularity === 'instruction'))) {
(threadStopReason === 'step' && this.thread.lastSteppingGranularity === 'instruction') ||
editorService.activeEditor instanceof DisassemblyViewInput)) {
return editorService.openEditor(DisassemblyViewInput.instance, { pinned: true });
}