解决反汇编页面中点击调试导航栏的调试按钮时,会退出反汇编视图的问题。
This commit is contained in:
parent
f643dc4881
commit
5808428879
|
@ -162,7 +162,7 @@ class OpenDisassemblyViewAction extends EditorAction2 {
|
||||||
runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, ...args: any[]): void {
|
runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, ...args: any[]): void {
|
||||||
if (editor.hasModel()) {
|
if (editor.hasModel()) {
|
||||||
const editorService = accessor.get(IEditorService);
|
const editorService = accessor.get(IEditorService);
|
||||||
editorService.openEditor(DisassemblyViewInput.instance, { pinned: true });
|
editorService.openEditor(DisassemblyViewInput.instance, { pinned: true, revealIfOpened: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,7 +464,8 @@ export class StackFrame implements IStackFrame {
|
||||||
const threadStopReason = this.thread.stoppedDetails?.reason;
|
const threadStopReason = this.thread.stoppedDetails?.reason;
|
||||||
if (this.instructionPointerReference &&
|
if (this.instructionPointerReference &&
|
||||||
(threadStopReason === 'instruction breakpoint' ||
|
(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 });
|
return editorService.openEditor(DisassemblyViewInput.instance, { pinned: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue