@@ -16,7 +16,7 @@ import { DebugSessionUUID, ExtHostDebugServiceShape, IBreakpointsDeltaDto, IThre
1616import { IExtHostEditorTabs } from 'vs/workbench/api/common/extHostEditorTabs' ;
1717import { IExtHostExtensionService } from 'vs/workbench/api/common/extHostExtensionService' ;
1818import { 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' ;
2020import { IExtHostWorkspace } from 'vs/workbench/api/common/extHostWorkspace' ;
2121import { AbstractDebugAdapter } from 'vs/workbench/contrib/debug/common/abstractDebugAdapter' ;
2222import { 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
601601 }
602602
603603 public async $acceptStackFrameFocus ( focusDto : IThreadFocusDto | IStackFrameFocusDto ) : Promise < void > {
604- let focus : vscode . ThreadFocus | vscode . StackFrameFocus ;
604+ let focus : ThreadFocus | StackFrameFocus ;
605605 const session = focusDto . sessionId ? await this . getSession ( focusDto . sessionId ) : undefined ;
606606 if ( ! session ) {
607607 throw new Error ( 'no DebugSession found for debug focus context' ) ;
608608 }
609609
610610 if ( focusDto . kind === 'thread' ) {
611- focus = {
612- kind : focusDto . kind ,
613- threadId : focusDto . threadId ,
614- session,
615- } ;
611+ focus = new ThreadFocus ( session , focusDto . threadId ) ;
616612 } 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 ) ;
623614 }
624615
625- this . _stackFrameFocus = focus ;
626- this . _onDidChangeStackFrameFocus . fire ( focus ) ;
616+ this . _stackFrameFocus = < vscode . ThreadFocus | vscode . StackFrameFocus > focus ;
617+ this . _onDidChangeStackFrameFocus . fire ( this . _stackFrameFocus ) ;
627618 }
628619
629620 public $provideDebugConfigurations ( configProviderHandle : number , folderUri : UriComponents | undefined , token : CancellationToken ) : Promise < vscode . DebugConfiguration [ ] > {
0 commit comments