1 # RUN: not --crash clangd -lit-test < %s 2> %t.err
2 # RUN: FileCheck %s < %t.err --check-prefixes=CHECK,CHECK-SYNC
3 # RUN: not --crash clangd -lit-test -sync=0 < %s 2> %t.async.err
4 # RUN: FileCheck %s < %t.async.err
5 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}
7 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
8 "uri":"test:///foo.cc",
10 "text":"#pragma clang __debug llvm_fatal_error"
13 {"jsonrpc":"2.0","id":1,"method":"sync","params":{}}
14 # CHECK: Signalled while building preamble
15 # CHECK-NEXT: Filename: foo.cc
16 # CHECK-SYNC: Signalled during AST worker action: Update
17 # CHECK-SYNC: Filename: foo.cc
18 # CHECK-SYNC: Signalled while processing message:
19 # CHECK-SYNC: "languageId":"cpp"