MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / toggleSkippingFile

Function toggleSkippingFile

src/ui/toggleSkippingFile.ts:10–31  ·  view source on GitHub ↗
(aPath: string | number)

Source from the content-addressed store, hash-verified

8import Dap from '../dap/api';
9
10export async function toggleSkippingFile(aPath: string | number): Promise<void> {
11 if (!aPath) {
12 const activeEditor = vscode.window.activeTextEditor;
13 if (!activeEditor) return;
14 aPath = activeEditor && activeEditor.document.fileName;
15 }
16
17 if (aPath && vscode.debug.activeDebugSession) {
18 let args: Dap.ToggleSkipFileStatusParams;
19 if (typeof aPath === 'string') {
20 if (isFileUrl(aPath)) {
21 args = { resource: fileURLToPath(aPath) };
22 } else {
23 args = { resource: aPath };
24 }
25 } else {
26 args = { sourceReference: aPath };
27 }
28
29 await vscode.debug.activeDebugSession.customRequest('toggleSkipFileStatus', args);
30 }
31}

Callers

nothing calls this directly

Calls 2

isFileUrlFunction · 0.90
customRequestMethod · 0.80

Tested by

no test coverage detected