branch: externals/eglot commit 47b957dadd06c0dd3c692079def786e65bc2d452 Author: João Távora <joaotav...@gmail.com> Commit: João Távora <joaotav...@gmail.com>
Let's not send Content-type for now. The LSP servers Eglot works with hate it * jsonrpc.el (jsonrpc-connection-send): Don't send Content-type. --- jsonrpc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsonrpc.el b/jsonrpc.el index 0205015..caf46af 100644 --- a/jsonrpc.el +++ b/jsonrpc.el @@ -439,7 +439,8 @@ connection object, called when the process dies .") (json (jsonrpc--json-encode message)) (headers `(("Content-Length" . ,(format "%d" (string-bytes json))) - ("Content-Type" . "application/vscode-jsonrpc; charset=utf-8")))) + ;; ("Content-Type" . "application/vscode-jsonrpc; charset=utf-8") + ))) (process-send-string (jsonrpc--process connection) (cl-loop for (header . value) in headers