(event: DebugSession, logger: RazorLogger, targetPid: number | undefined)
| 45 | } |
| 46 | |
| 47 | function terminateByPid(event: DebugSession, logger: RazorLogger, targetPid: number | undefined) { |
| 48 | // Ignore debug sessions that are not applicable to us |
| 49 | if (!isValidEvent(event.name)) { |
| 50 | return; |
| 51 | } |
| 52 | |
| 53 | killProcess(targetPid, logger); |
| 54 | } |
| 55 | |
| 56 | async function terminateByProcessName(event: DebugSession, logger: RazorLogger, targetProcess: string) { |
| 57 | // Ignore debug sessions that are not applicable to us |
no test coverage detected