Method
initAdapter
(
adapter: DebugAdapter,
target: ITarget,
launcher: BrowserLauncher<AnyChromiumLaunchConfiguration>,
)
Source from the content-addressed store, hash-verified
| 381 | } |
| 382 | |
| 383 | async initAdapter( |
| 384 | adapter: DebugAdapter, |
| 385 | target: ITarget, |
| 386 | launcher: BrowserLauncher<AnyChromiumLaunchConfiguration>, |
| 387 | ): Promise<boolean> { |
| 388 | const p = this._targetToP.get(target); |
| 389 | if (!p) { |
| 390 | return true; |
| 391 | } |
| 392 | |
| 393 | const boot = await p._init(adapter, target, launcher); |
| 394 | if (target.parent()) this._workerCallback(p); |
| 395 | else this._launchCallback(p); |
| 396 | this._onSessionCreatedEmitter.fire(p); |
| 397 | return boot; |
| 398 | } |
| 399 | |
| 400 | releaseDap(target: ITarget) { |
| 401 | this._targetToP.delete(target); |
Callers
nothing calls this directly
Tested by
no test coverage detected