Files
galaxy/crates/lsp
Ryan Ward 4aa2c0d685 fix: resolve TypeScript LSP initialization failure
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
2026-07-16 16:58:47 -05:00
..
2026-04-28 08:43:33 -05:00

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.