MCPcopy Create free account
hub / github.com/Snapchat/Valdi / _attachToNewTargets

Method _attachToNewTargets

valdi/vscode_debugger/src/binder.ts:432–443  ·  view source on GitHub ↗
(targets: ITarget[], launcher: ILauncher)

Source from the content-addressed store, hash-verified

430 }
431
432 private _attachToNewTargets(targets: ITarget[], launcher: ILauncher) {
433 for (const target of targets.values()) {
434 if (!target.waitingForDebugger()) {
435 continue;
436 }
437
438 const thread = this._threads.get(target);
439 if (!thread) {
440 this.attach(target, launcher);
441 }
442 }
443 }
444
445 _detachOrphanThreads(targets: ITarget[], terminateArgs?: Dap.TerminatedEventParams) {
446 const set = new Set(targets);

Callers 1

getLaunchersMethod · 0.95

Calls 4

attachMethod · 0.95
valuesMethod · 0.80
waitingForDebuggerMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected