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

Function isValidEvent

src/razor/src/blazorDebug/terminateDebugHandler.ts:11–15  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

9import { JS_DEBUG_NAME, SERVER_APP_NAME } from './constants';
10
11export const isValidEvent = (name: string) => {
12 // The name can be of the form: `Debug Blazor Web Assembly in Browser: https://localhost:7291`
13 // hence we have to examine what the name **startsWith**
14 return name.startsWith(JS_DEBUG_NAME) || name === SERVER_APP_NAME;
15};
16
17const killProcess = (targetPid: number | undefined, logger: RazorLogger) => {
18 // If no PID was provided, then exit early.

Callers 4

launchAppMethod · 0.90
attachToAppOnBrowserMethod · 0.90
terminateByPidFunction · 0.85
terminateByProcessNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected