MCPcopy Index your code
hub / github.com/codeaashu/claude-code / onNotification

Function onNotification

src/services/lsp/LSPClient.ts:337–350  ·  view source on GitHub ↗
(method: string, handler: (params: unknown) => void)

Source from the content-addressed store, hash-verified

335 },
336
337 onNotification(method: string, handler: (params: unknown) => void): void {
338 if (!connection) {
339 // Queue handler for application when connection is ready (lazy initialization)
340 pendingHandlers.push({ method, handler })
341 logForDebugging(
342 `Queued notification handler for ${serverName}.${method} (connection not ready)`,
343 )
344 return
345 }
346
347 checkStartFailed()
348
349 connection.onNotification(method, handler)
350 },
351
352 onRequest<TParams, TResult>(
353 method: string,

Callers

nothing calls this directly

Calls 3

logForDebuggingFunction · 0.85
checkStartFailedFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected