1 # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
6 "method": "initialize",
13 "signatureInformation": {
14 "parameterInformation": {
15 "labelOffsetSupport": true
25 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"void x(int);\nint main(){\nx("}}}
27 {"jsonrpc":"2.0","id":1,"method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"test:///main.cpp"},"position":{"line":2,"character":2}}}
29 # CHECK-NEXT: "jsonrpc": "2.0",
30 # CHECK-NEXT: "result": {
31 # CHECK-NEXT: "activeParameter": 0,
32 # CHECK-NEXT: "activeSignature": 0,
33 # CHECK-NEXT: "signatures": [
35 # CHECK-NEXT: "label": "x(int) -> void",
36 # CHECK-NEXT: "parameters": [
38 # CHECK-NEXT: "label": [
48 {"jsonrpc":"2.0","id":100000,"method":"shutdown"}
50 {"jsonrpc":"2.0","method":"exit"}