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

Function formatCSharpFile

scripts/codegen/csharp.ts:311–319  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

309}
310
311async function formatCSharpFile(filePath: string): Promise<void> {
312 try {
313 const projectFile = path.join(REPO_ROOT, "dotnet/src/GitHub.Copilot.SDK.csproj");
314 await execFileAsync("dotnet", ["format", projectFile, "--include", filePath]);
315 console.log(` ✓ Formatted with dotnet format`);
316 } catch {
317 // dotnet format not available, skip
318 }
319}
320
321function collectRpcMethods(node: Record<string, unknown>): RpcMethod[] {
322 const results: RpcMethod[] = [];

Callers 2

generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85

Calls 2

joinMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…