From 580842887956ddae90679c31f3ef52115b777c56 Mon Sep 17 00:00:00 2001 From: chriswang521 Date: Fri, 1 Dec 2023 14:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8F=8D=E6=B1=87=E7=BC=96?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=AD=E7=82=B9=E5=87=BB=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E7=9A=84=E8=B0=83=E8=AF=95=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=97=B6=EF=BC=8C=E4=BC=9A=E9=80=80=E5=87=BA=E5=8F=8D?= =?UTF-8?q?=E6=B1=87=E7=BC=96=E8=A7=86=E5=9B=BE=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vs/workbench/contrib/debug/browser/debugEditorActions.ts | 2 +- src/vs/workbench/contrib/debug/common/debugModel.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts b/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts index 4264520e..645db4f9 100644 --- a/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts +++ b/src/vs/workbench/contrib/debug/browser/debugEditorActions.ts @@ -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 }); } } } diff --git a/src/vs/workbench/contrib/debug/common/debugModel.ts b/src/vs/workbench/contrib/debug/common/debugModel.ts index c05fc04c..774459c6 100644 --- a/src/vs/workbench/contrib/debug/common/debugModel.ts +++ b/src/vs/workbench/contrib/debug/common/debugModel.ts @@ -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 }); }