diff options
Diffstat (limited to 'clangd/test/unsupported-method.test')
-rw-r--r-- | clangd/test/unsupported-method.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clangd/test/unsupported-method.test b/clangd/test/unsupported-method.test new file mode 100644 index 00000000..9cdb12c3 --- /dev/null +++ b/clangd/test/unsupported-method.test @@ -0,0 +1,16 @@ +# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s +{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} +--- +{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":""}}} +--- +{"jsonrpc":"2.0","id":1,"method":"textDocument/jumpInTheAirLikeYouJustDontCare","params":{}} +# CHECK: "error": { +# CHECK-NEXT: "code": -32601, +# CHECK-NEXT: "message": "method not found" +# CHECK-NEXT: }, +# CHECK-NEXT: "id": 1, +# CHECK-NEXT: "jsonrpc": "2.0" +--- +{"jsonrpc":"2.0","id":2,"method":"shutdown"} +--- +{"jsonrpc":"2.0","method":"exit"} |