llvm-project/clang-tools-extra/clangd/test/filestatus.test

14 lines
683 B
Plaintext

# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"initializationOptions":{"clangdFileStatus": true},"trace":"off"}}
---
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"int x; int y = x;"}}}
# CHECK: "method": "textDocument/clangd.fileStatus",
# CHECK-NEXT: "params": {
# CHECK-NEXT: "state": "parsing includes",
# CHECK-NEXT: "uri": "{{.*}}/main.cpp"
# CHECK-NEXT: }
---
{"jsonrpc":"2.0","id":3,"method":"shutdown"}
---
{"jsonrpc":"2.0","method":"exit"}