@@ -16,7 +16,7 @@ import { DebugSessionUUID, ExtHostDebugServiceShape, IBreakpointsDeltaDto, IThre
16
16
import { IExtHostEditorTabs } from 'vs/workbench/api/common/extHostEditorTabs' ;
17
17
import { IExtHostExtensionService } from 'vs/workbench/api/common/extHostExtensionService' ;
18
18
import { IExtHostRpcService } from 'vs/workbench/api/common/extHostRpcService' ;
19
- import { Breakpoint , DataBreakpoint , DebugAdapterExecutable , DebugAdapterInlineImplementation , DebugAdapterNamedPipeServer , DebugAdapterServer , DebugConsoleMode , Disposable , FunctionBreakpoint , Location , Position , setBreakpointId , SourceBreakpoint } from 'vs/workbench/api/common/extHostTypes' ;
19
+ import { Breakpoint , DataBreakpoint , DebugAdapterExecutable , DebugAdapterInlineImplementation , DebugAdapterNamedPipeServer , DebugAdapterServer , DebugConsoleMode , Disposable , FunctionBreakpoint , Location , Position , setBreakpointId , SourceBreakpoint , ThreadFocus , StackFrameFocus } from 'vs/workbench/api/common/extHostTypes' ;
20
20
import { IExtHostWorkspace } from 'vs/workbench/api/common/extHostWorkspace' ;
21
21
import { AbstractDebugAdapter } from 'vs/workbench/contrib/debug/common/abstractDebugAdapter' ;
22
22
import { IAdapterDescriptor , IConfig , IDebugAdapter , IDebugAdapterExecutable , IDebugAdapterNamedPipeServer , IDebugAdapterServer , IDebuggerContribution } from 'vs/workbench/contrib/debug/common/debug' ;
@@ -601,29 +601,20 @@ export abstract class ExtHostDebugServiceBase implements IExtHostDebugService, E
601
601
}
602
602
603
603
public async $acceptStackFrameFocus ( focusDto : IThreadFocusDto | IStackFrameFocusDto ) : Promise < void > {
604
- let focus : vscode . ThreadFocus | vscode . StackFrameFocus ;
604
+ let focus : ThreadFocus | StackFrameFocus ;
605
605
const session = focusDto . sessionId ? await this . getSession ( focusDto . sessionId ) : undefined ;
606
606
if ( ! session ) {
607
607
throw new Error ( 'no DebugSession found for debug focus context' ) ;
608
608
}
609
609
610
610
if ( focusDto . kind === 'thread' ) {
611
- focus = {
612
- kind : focusDto . kind ,
613
- threadId : focusDto . threadId ,
614
- session,
615
- } ;
611
+ focus = new ThreadFocus ( session , focusDto . threadId ) ;
616
612
} else {
617
- focus = {
618
- kind : focusDto . kind ,
619
- threadId : focusDto . threadId ,
620
- frameId : focusDto . frameId ,
621
- session,
622
- } ;
613
+ focus = new StackFrameFocus ( session , focusDto . threadId , focusDto . frameId ) ;
623
614
}
624
615
625
- this . _stackFrameFocus = focus ;
626
- this . _onDidChangeStackFrameFocus . fire ( focus ) ;
616
+ this . _stackFrameFocus = < vscode . ThreadFocus | vscode . StackFrameFocus > focus ;
617
+ this . _onDidChangeStackFrameFocus . fire ( this . _stackFrameFocus ) ;
627
618
}
628
619
629
620
public $provideDebugConfigurations ( configProviderHandle : number , folderUri : UriComponents | undefined , token : CancellationToken ) : Promise < vscode . DebugConfiguration [ ] > {
0 commit comments