MCPcopy Index your code
hub / github.com/github/copilot-sdk / generateSessionEvents

Function generateSessionEvents

scripts/codegen/csharp.ts:1412–1421  ·  view source on GitHub ↗
(schemaPath?: string)

Source from the content-addressed store, hash-verified

1410}
1411
1412export async function generateSessionEvents(schemaPath?: string): Promise<void> {
1413 console.log("C#: generating session-events...");
1414 const resolvedPath = schemaPath ?? (await getSessionEventsSchemaPath());
1415 const schema = cloneSchemaForCodegen((await loadSchemaJson(resolvedPath)) as JSONSchema7);
1416 const processed = propagateInternalVisibility(postProcessSchema(schema));
1417 const code = generateSessionEventsCode(processed);
1418 const outPath = await writeGeneratedFile("dotnet/src/Generated/SessionEvents.cs", code);
1419 console.log(` ✓ ${outPath}`);
1420 await formatCSharpFile(outPath);
1421}
1422
1423// ══════════════════════════════════════════════════════════════════════════════
1424// RPC TYPES

Callers 1

generateFunction · 0.70

Calls 9

cloneSchemaForCodegenFunction · 0.85
loadSchemaJsonFunction · 0.85
postProcessSchemaFunction · 0.85
formatCSharpFileFunction · 0.85
writeGeneratedFileFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…