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

Method _withThread

src/adapter/debugAdapter.ts:531–537  ·  view source on GitHub ↗
(callback: (thread: Thread) => Promise<T>)

Source from the content-addressed store, hash-verified

529 }
530
531 _withThread<T>(callback: (thread: Thread) => Promise<T>): Promise<T> {
532 if (!this._thread) {
533 throw new ProtocolError(errors.threadNotAvailable());
534 }
535
536 return callback(this._thread);
537 }
538
539 async _refreshStackTrace() {
540 if (!this._thread) return;

Callers 4

constructorMethod · 0.95
_breakpointLocationsMethod · 0.95
_stepInTargetsMethod · 0.95
onEvaluateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected