Repository navigation
LSP entries no longer error on hosts that lack the language server binary.
Fixed
- Claude Code printed
Language server "plugin:scaffolding:<name>" couldn't start: its program "<bin>" wasn't foundthe first time a file of that type was touched on a machine without the language server installed (the 16lspServersentries target the scaffolding.tool session containers, where each command is a shim on PATH).
EverylspServersentry now runsnode ${CLAUDE_PLUGIN_ROOT}/lsp/launch.js <program> [args...]. When<program>is on PATH the launcher runs it unchanged (stdio inherited, SIGTERM/SIGINT forwarded, exit status propagated).
When it is not, the launcher answers as a no-op LSP server:initializegets empty capabilities withserverInfo.name" (not installed)",shutdowngetsnull, any other request gets-32601, notifications are ignored, and it exits 0 onexitor stdin EOF. Only protocol messages go to stdout; one line goes to stderr. hooks/lib/refactor-guard.mjslooks through the launcher: anlspServersentry whose command isnode ${CLAUDE_PLUGIN_ROOT}/lsp/launch.js <program>counts as covering its extensions only when<program>is on PATH, as before (otherwisenodewould always be found and the guard would wrongly treat the language as covered).
Added
lsp/launch.js(Node >= 22, no dependencies) andtests/hooks/test-lsp-launcher.sh(+lsp-client.mjs): missing-program handshake, present-program args/stdio/exit code/SIGTERM, and a check that everylspServersentry routes through the launcher.