* Terminates all running targets. Resolves when all have terminated.
(terminateDebuggee?: boolean)
| 200 | * Terminates all running targets. Resolves when all have terminated. |
| 201 | */ |
| 202 | private async _terminateRoot(terminateDebuggee?: boolean) { |
| 203 | this._root.state = TargetState.Terminating; |
| 204 | await Promise.all([...this.getLaunchers()].map(l => l.terminate(terminateDebuggee))); |
| 205 | await this._root.waitUntilChildrenAre(TargetState.Terminated); |
| 206 | this._root.state = TargetState.Terminated; |
| 207 | return {}; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Disconnects all running targets. Resolves when all have disconnected. |
no test coverage detected