typescript-language-server requires a valid TypeScript installation to function. Previously, no initializationOptions were sent during the LSP initialize request, causing the server to fail with: 'Could not find a valid TypeScript installation. Please ensure that the typescript dependency is installed in the workspace or that a valid tsserver.path is specified.' This fix: - Adds initializationOptions.tsserver.path resolution that searches for TypeScript in: workspace node_modules, global npm install, and npx cache - Wires initialization_options into the LSP startup flow via LSPServerType - Updates the install step to proactively install TypeScript globally if not found locally
lsp
This crate provides a stdio-only Language Server Protocol (LSP) client transport for Warp. It:
- Spawns and manages a language server process (child process)
- Communicates over stdio using JSON-RPC with proper Content-Length framing
See examples/rust-lsp/main.rs for an example implementation.