MCPcopy Index your code
hub / github.com/microsoft/vscode / toStackFrame

Function toStackFrame

test/automation/src/debug.ts:42–51  ·  view source on GitHub ↗
(element: IElement)

Source from the content-addressed store, hash-verified

40}
41
42function toStackFrame(element: IElement): IStackFrame {
43 const name = findElement(element, e => /\bfile-name\b/.test(e.className))!;
44 const line = findElement(element, e => /\bline-number\b/.test(e.className))!;
45 const lineNumber = line.textContent ? parseInt(line.textContent.split(':').shift() || '0') : 0;
46
47 return {
48 name: name.textContent || '',
49 lineNumber
50 };
51}
52
53export class Debug extends Viewlet {
54

Callers 1

waitForStackFrameMethod · 0.85

Calls 4

findElementFunction · 0.90
splitMethod · 0.65
testMethod · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…