4 "method": "initialize",
8 "capabilities": { "window": { "workDoneProgress": true, "implicitWorkDoneProgressCreate": true} },
15 "method": "textDocument/didOpen",
18 "uri": "file://DIRECTORY/bar.cpp",
21 "text": "#include \"sub_dir/foo.h\"\nint main(){\nreturn foo();\n}"
25 # BUILD: "method": "$/progress"
26 # BUILD-NEXT: "params": {
27 # BUILD-NEXT: "token": "backgroundIndexProgress",
28 # BUILD-NEXT: "value": {
29 # BUILD-NEXT: "kind": "begin",
30 # BUILD-NEXT: "percentage": 0,
31 # BUILD-NEXT: "title": "indexing"
34 # BUILD: "method": "$/progress"
35 # BUILD-NEXT: "params": {
36 # BUILD-NEXT: "token": "backgroundIndexProgress",
37 # BUILD-NEXT: "value": {
38 # BUILD-NEXT: "kind": "report",
39 # BUILD-NEXT: "message": "0/1",
40 # BUILD-NEXT: "percentage": 0
44 # BUILD: "message": "1/2",
45 # BUILD-NEXT: "percentage": 50
47 # BUILD: "kind": "end"
48 # when using the index, we spawn one task to read it, but not more.
49 # USE-NOT: "message": "1/2",
61 "method": "textDocument/definition",
64 "uri": "file://DIRECTORY/bar.cpp"
72 # CHECK: "uri": "file://{{.*}}/foo.cpp"
74 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
76 {"jsonrpc":"2.0","method":"exit"}