MCPcopy
hub / github.com/dotnet/vscode-csharp / terminateByPid

Function terminateByPid

src/razor/src/blazorDebug/terminateDebugHandler.ts:47–54  ·  view source on GitHub ↗
(event: DebugSession, logger: RazorLogger, targetPid: number | undefined)

Source from the content-addressed store, hash-verified

45}
46
47function 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
56async function terminateByProcessName(event: DebugSession, logger: RazorLogger, targetProcess: string) {
57 // Ignore debug sessions that are not applicable to us

Callers 1

Calls 2

isValidEventFunction · 0.85
killProcessFunction · 0.85

Tested by

no test coverage detected