xref: /llvm-project/clang-tools-extra/clangd/test/unsupported-method.test (revision b804eef09052cf40e79aa2ed8a23f2f39e2dda1b)
1# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
2{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
3---
4{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":""}}}
5---
6{"jsonrpc":"2.0","id":1,"method":"textDocument/jumpInTheAirLikeYouJustDontCare","params":{}}
7#      CHECK:  "error": {
8# CHECK-NEXT:    "code": -32601,
9# CHECK-NEXT:    "message": "method not found"
10# CHECK-NEXT:  },
11# CHECK-NEXT:  "id": 1,
12# CHECK-NEXT:  "jsonrpc": "2.0"
13---
14{"jsonrpc":"2.0","id":2,"method":"shutdown"}
15---
16{"jsonrpc":"2.0","method":"exit"}
17