Files
iLSP/scripts/lsp_bridge.py
Henrik Jess Nielsen fc40157a77
All checks were successful
Build and Deploy iLSP / test (push) Successful in 22s
Build and Deploy iLSP / build-and-deploy (push) Successful in 57s
add lsp_bridge.py: proper LSP-aware WebSocket bridge replacing websocat
websocat reads stdin line-by-line and waits for \n before sending each chunk.
LSP JSON bodies have no trailing \n, causing a deadlock: websocat holds the
body, the server waits for the body, LSP4IJ waits for the response.

lsp_bridge.py reads complete Content-Length-framed messages before sending,
then sends each as a single binary WebSocket frame. This fixes autocomplete
in IntelliJ IDEA via LSP4IJ.
2026-05-11 12:29:33 +02:00

2.8 KiB
Executable File