(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 484 | } |
| 485 | |
| 486 | async function handleDiff( |
| 487 | ix: IInstantiationService, |
| 488 | sessionId: string, |
| 489 | req: { id: string; body: unknown }, |
| 490 | reply: { send(payload: unknown): unknown }, |
| 491 | ): Promise<void> { |
| 492 | const parsed = fsDiffRequestSchema.safeParse(req.body ?? {}); |
| 493 | if (!parsed.success) { |
| 494 | reply.send(buildValidationEnvelope(parsed.error.issues, req.id)); |
| 495 | return; |
| 496 | } |
| 497 | const body: FsDiffRequest = parsed.data; |
| 498 | const data = await ix.invokeFunction((a) => |
| 499 | a.get(IFsGitService).diff(sessionId, body), |
| 500 | ); |
| 501 | reply.send(okEnvelope(data, req.id)); |
| 502 | } |
| 503 | |
| 504 | async function handleOpen( |
| 505 | ix: IInstantiationService, |
no test coverage detected