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

Function waitForPause

src/test/webview/webview.breakpoints.test.win.ts:11–16  ·  view source on GitHub ↗
(p: ITestHandle, cb?: (threadId: string) => Promise<void>)

Source from the content-addressed store, hash-verified

9
10describe('webview breakpoints', () => {
11 async function waitForPause(p: ITestHandle, cb?: (threadId: string) => Promise<void>) {
12 const { threadId } = p.log(await p.dap.once('stopped'));
13 await p.logger.logStackTrace(threadId);
14 if (cb) await cb(threadId);
15 return p.dap.continue({ threadId });
16 }
17
18 itIntegrates('launched script', async ({ r, context }) => {
19 context.timeout(30 * 1000);

Callers 1

Calls 4

logStackTraceMethod · 0.80
continueMethod · 0.80
logMethod · 0.65
onceMethod · 0.65

Tested by

no test coverage detected