(aPath: string | number)
| 8 | import Dap from '../dap/api'; |
| 9 | |
| 10 | export 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 | } |
nothing calls this directly
no test coverage detected