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

Function methodHasSessionId

java/scripts/codegen/java.ts:1668–1672  ·  view source on GitHub ↗

True if the method's params schema contains a "sessionId" property

(method: RpcMethodNode)

Source from the content-addressed store, hash-verified

1666
1667/** True if the method's params schema contains a "sessionId" property */
1668function methodHasSessionId(method: RpcMethodNode): boolean {
1669 let params = method.params;
1670 if (params?.$ref) params = resolveRef(params) as JSONSchema7;
1671 return !!params?.properties && "sessionId" in params.properties;
1672}
1673
1674/**
1675 * Generate the Java source for a single method in a wrapper API class.

Callers 1

generateApiMethodFunction · 0.85

Calls 1

resolveRefFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…