lspeasy / core/src / getSchemaForMethod
Function: getSchemaForMethod()
ts
function getSchemaForMethod(method):
| ZodType<any, unknown, $ZodTypeInternals<any, unknown>>
| undefined;Defined in: packages/core/src/protocol/schemas.ts:306
Looks up the Zod validation schema for a given LSP method.
Parameters
| Parameter | Type | Description |
|---|---|---|
method | string | The LSP method string to look up (e.g. 'textDocument/hover'). |
Returns
| ZodType<any, unknown, $ZodTypeInternals<any, unknown>> | undefined
The Zod schema for the method's params, or undefined if none is registered.