MCPcopy Create free account
hub / github.com/microsoft/vscode / waitForStackFrame

Method waitForStackFrame

test/automation/src/debug.ts:112–115  ·  view source on GitHub ↗
(func: (stackFrame: IStackFrame) => boolean, message: string)

Source from the content-addressed store, hash-verified

110 }
111
112 async waitForStackFrame(func: (stackFrame: IStackFrame) => boolean, message: string): Promise<IStackFrame> {
113 const elements = await this.code.waitForElements(STACK_FRAME, true, elements => elements.some(e => func(toStackFrame(e))));
114 return elements.map(toStackFrame).filter(s => func(s))[0];
115 }
116
117 async waitForStackFrameLength(length: number): Promise<any> {
118 await this.code.waitForElements(STACK_FRAME, false, result => result.length === length);

Callers

nothing calls this directly

Calls 5

toStackFrameFunction · 0.85
waitForElementsMethod · 0.80
filterMethod · 0.65
mapMethod · 0.65
someMethod · 0.45

Tested by

no test coverage detected