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

Method _withThread

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

Source from the content-addressed store, hash-verified

238 }
239
240 _withThread<T>(callback: (thread: Thread) => Promise<T>): Promise<T | Dap.Error> {
241 if (!this._thread) return Promise.resolve(this._threadNotAvailableError());
242 return callback(this._thread);
243 }
244
245 async _refreshStackTrace() {
246 if (!this._thread) return;

Callers 1

constructorMethod · 0.95

Calls 3

callbackFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected