aboutsummaryrefslogtreecommitdiff
path: root/test/send.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/send.py')
-rwxr-xr-xtest/send.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/send.py b/test/send.py
deleted file mode 100755
index 78b89aa..0000000
--- a/test/send.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env python3
-import json
-import sys
-
-
-def send(message: dict):
- raw = json.dumps(message)
- message = "Content-Length: " + str(len(raw)) + "\r\n\r\n" + raw
- sys.stdout.write(message)
-
-
-initialize = {
- "jsonrpc": "2.0",
- "id": 1,
- "method": "initialize",
- "params": {"processId": None, "rootUri": None, "capabilities": {}},
-}
-send(initialize)
-
-initialized = {
- "jsonrpc": "2.0",
- "id": 2,
- "method": "initialized",
- "params": {},
-}
-send(initialized)
-
-shutdown = {
- "jsonrpc": "2.0",
- "id": 3,
- "method": "shutdown",
- "params": {},
-}
-send(shutdown)
-
-_exit = {
- "jsonrpc": "2.0",
- "id": 4,
- "method": "exit",
- "params": {},
-}
-send(_exit)