llvm-project
31 строка · 1.1 Кб
1// RUN: tblgen-lsp-server -lit-test < %s | FileCheck %s
2// Test initialize request parameters with rootUri
3{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootUri":"test:///workspace","capabilities":{},"trace":"off"}}
4// CHECK: "id": 0,
5// CHECK-NEXT: "jsonrpc": "2.0",
6// CHECK-NEXT: "result": {
7// CHECK-NEXT: "capabilities": {
8// CHECK-NEXT: "definitionProvider": true,
9// CHECK-NEXT: "documentLinkProvider": {
10// CHECK-NEXT: "resolveProvider": false
11// CHECK-NEXT: },
12// CHECK-NEXT: "hoverProvider": true,
13// CHECK-NEXT: "referencesProvider": true,
14// CHECK-NEXT: "textDocumentSync": {
15// CHECK-NEXT: "change": 2,
16// CHECK-NEXT: "openClose": true,
17// CHECK-NEXT: "save": true
18// CHECK-NEXT: }
19// CHECK-NEXT: },
20// CHECK-NEXT: "serverInfo": {
21// CHECK-NEXT: "name": "tblgen-lsp-server",
22// CHECK-NEXT: "version": "{{.*}}"
23// CHECK-NEXT: }
24// CHECK-NEXT: }
25// -----
26{"jsonrpc":"2.0","id":3,"method":"shutdown"}
27// CHECK: "id": 3,
28// CHECK-NEXT: "jsonrpc": "2.0",
29// CHECK-NEXT: "result": null
30// -----
31{"jsonrpc":"2.0","method":"exit"}
32