1 # RUN: env CLANGD_TRACE=%t clangd -lit-test < %s && FileCheck %s < %t
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
5 # These assertions are a bit loose, to avoid brittleness.
7 # CHECK: "displayTimeUnit": "ns",
8 # CHECK: "traceEvents": [
11 # CHECK: "name": "BuildPreamble",
13 # CHECK: "File": "{{.*(/|\\)}}foo.c"
18 # CHECK: "name": "BuildAST",
20 # CHECK: "File": "{{.*(/|\\)}}foo.c"
26 {"jsonrpc":"2.0","id":5,"method":"shutdown"}
28 {"jsonrpc":"2.0","method":"exit"}