()
| 581 | } |
| 582 | |
| 583 | async disconnect(): Promise<void> { |
| 584 | return new Promise<void>(cb => { |
| 585 | this.initialize.then(() => { |
| 586 | const connection = this._browserLauncher?.connectionForTest(); |
| 587 | if (connection) { |
| 588 | const disposable = connection.onDisconnected(() => { |
| 589 | cb(); |
| 590 | disposable.dispose(); |
| 591 | }); |
| 592 | } else { |
| 593 | cb(); |
| 594 | } |
| 595 | this._root.dap.disconnect({}); |
| 596 | this.binder.dispose(); |
| 597 | }); |
| 598 | }); |
| 599 | } |
| 600 | |
| 601 | completeUrl(relativePath: string): string { |
| 602 | return utils.completeUrl(this._launchUrl, relativePath) || ''; |
no test coverage detected