(host?: string, inputStream?: Readable, outputStream?: Writable)
| 55 | private readonly sessionServer: ServerSessionManager<VSDebugSession>; |
| 56 | |
| 57 | constructor(host?: string, inputStream?: Readable, outputStream?: Writable) { |
| 58 | const services = createGlobalContainer({ storagePath, isVsCode: false }); |
| 59 | this.sessionServer = new ServerSessionManager(services, this, host); |
| 60 | |
| 61 | const deferredConnection: IDeferred<DapConnection> = getDeferred(); |
| 62 | const rootSession = new VSDebugSession( |
| 63 | 'root', |
| 64 | l10n.t('JavaScript debug adapter'), |
| 65 | deferredConnection.promise, |
| 66 | { type: DebugType.Chrome, name: 'root', request: 'launch' }, |
| 67 | ); |
| 68 | if (inputStream && outputStream) { |
| 69 | this.launchRootFromExisting(deferredConnection, rootSession, inputStream, outputStream); |
| 70 | } else { |
| 71 | this.launchRoot(deferredConnection, rootSession); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | private launchRootFromExisting( |
| 76 | deferredConnection: IDeferred<DapConnection>, |
nothing calls this directly
no test coverage detected