MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onRequest

Function onRequest

src/services/lsp/LSPServerInstance.ts:461–466  ·  view source on GitHub ↗

* Registers a handler for LSP requests from the server. * * Some LSP servers send requests TO the client (reverse direction). * This allows registering handlers for such requests. * * @param method - LSP request method (e.g., 'workspace/configuration') * @param handler - Callback f

(
    method: string,
    handler: (params: TParams) => TResult | Promise<TResult>,
  )

Source from the content-addressed store, hash-verified

459 * @param handler - Callback function to handle the request and return a response
460 */
461 function onRequest<TParams, TResult>(
462 method: string,
463 handler: (params: TParams) => TResult | Promise<TResult>,
464 ): void {
465 client.onRequest(method, handler)
466 }
467
468 // Return public API
469 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected