import { DebugAdapterTracker , DebugAdapterTrackerFactory , DebugSession , ProviderResult , } from "vscode" ; import { DebuggerCommunicationService } from "../service/debuggerCommunicationService" ; import { MessagingService } from "../service/messagingService" ; import { DebugAdapter } from "./debugAdapter" ; export class DebugAdapterFactory implements DebugAdapterTrackerFactory { private debugSession : DebugSession ; private messagingService : MessagingService ; private debugCommunicationService : DebuggerCommunicationService ; constructor ( debugSession , messagingService , debugCommunicationService ) { this . debugSession = debugSession ; this . messagingService = messagingService ; this . debugCommunicationService = debugCommunicationService ; } public createDebugAdapterTracker ( session ) { return new DebugAdapter ( session , this . messagingService , this . debugCommunicationService ) ; } }