1# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
2# Start a session.
3{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
4---
5{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"void x(int);\nint main(){\nx("}}}
6---
7{"jsonrpc":"2.0","id":1,"method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"test:///main.cpp"},"position":{"line":2,"character":2}}}
8#      CHECK: "id": 1,
9# CHECK-NEXT: "jsonrpc": "2.0",
10# CHECK-NEXT: "result": {
11# CHECK-NEXT:   "activeParameter": 0,
12# CHECK-NEXT:   "activeSignature": 0,
13# CHECK-NEXT:   "signatures": [
14# CHECK-NEXT:     {
15# CHECK-NEXT:       "label": "x(int) -> void",
16# CHECK-NEXT:       "parameters": [
17# CHECK-NEXT:         {
18# CHECK-NEXT:           "label": "int"
19# CHECK-NEXT:         }
20# CHECK-NEXT:       ]
21# CHECK-NEXT:     }
22# CHECK-NEXT:   ]
23# CHECK-NEXT: }
24---
25{"jsonrpc":"2.0","id":100000,"method":"shutdown"}
26---
27{"jsonrpc":"2.0","method":"exit"}
28