mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Fix format of JSON-RPC content part ending with \r\n
This commit is contained in:
parent
6acf0fe5a0
commit
778a979714
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class LanguageServer:
|
|||
|
||||
def _send(self, data):
|
||||
data["jsonrpc"] = "2.0"
|
||||
line = json.dumps(data, separators=(",", ":")) + "\r\n"
|
||||
line = json.dumps(data, separators=(",", ":"))
|
||||
printerr("output: " + line)
|
||||
sys.stdout.write(
|
||||
f"Content-Length: {len(line.encode())}\r\nContent-Type: application/vscode-jsonrpc; charset=utf-8\r\n\r\n{line}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue