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

Function dumpSource

src/test/sources/sourcesTest.ts:13–25  ·  view source on GitHub ↗
(p: ITestHandle, event: Dap.LoadedSourceEventParams, name: string)

Source from the content-addressed store, hash-verified

11
12describe('sources', () => {
13 async function dumpSource(p: ITestHandle, event: Dap.LoadedSourceEventParams, name: string) {
14 p.log('\nSource event for ' + name);
15 p.log(event);
16 const content = await p.dap.source({
17 sourceReference: event.source.sourceReference!,
18 source: {
19 path: event.source.path,
20 sourceReference: event.source.sourceReference,
21 },
22 });
23 p.log(content.content);
24 p.log('---------');
25 }
26
27 itIntegrates('basic sources', async ({ r }) => {
28 const p = await r.launchUrl('inlinescript.html');

Callers 1

sourcesTest.tsFile · 0.85

Calls 2

logMethod · 0.65
sourceMethod · 0.65

Tested by

no test coverage detected