MCPcopy
hub / github.com/microsoft/vscode-js-debug / _terminateRoot

Method _terminateRoot

src/binder.ts:202–208  ·  view source on GitHub ↗

* Terminates all running targets. Resolves when all have terminated.

(terminateDebuggee?: boolean)

Source from the content-addressed store, hash-verified

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.

Callers 4

constructorMethod · 0.95
_disconnectRootMethod · 0.95
_terminateTargetMethod · 0.95
_disconnectTargetMethod · 0.95

Calls 4

allMethod · 0.80
mapMethod · 0.80
waitUntilChildrenAreMethod · 0.80
terminateMethod · 0.65

Tested by

no test coverage detected