LSP Request Handler Support#
What's wrong with this entry?
What: LSP servers can now send requests back to Claude Code and receive responses, enabling full bidirectional communication required by the LSP protocol.
How it works: The LSP client now supports onRequest() to handle incoming requests from language servers, complementing the existing onNotification() for one-way messages. This enables proper LSP protocol compliance.
Details:
- Added
onRequest()method to LSP client wrapper aty$Q() at line 283672 - Implemented request handler queueing system (variable
X = []at line 283555) for handlers registered before connection establishment - Exposed
onRequestin high-level LSP server API atx$Q() at line 283868 - Immediately utilized to handle
workspace/configurationrequests at line 286293, returningnullfor all configuration items (safe default) - Evidence:
y$Q() at line 283547-283803(new LSP client),x$Q() at line 283893(exposed API)
Why it matters: Many LSP servers (TypeScript, Python, etc.) require clients to respond to workspace/configuration requests during initialization. Without this, some language servers may fail to initialize properly or operate with reduced functionality.