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"}}
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
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
20 // CHECK-NEXT: "serverInfo": {
21 // CHECK-NEXT: "name": "tblgen-lsp-server",
22 // CHECK-NEXT: "version": "{{.*}}"
26 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
28 // CHECK-NEXT: "jsonrpc": "2.0",
29 // CHECK-NEXT: "result": null
31 {"jsonrpc":"2.0","method":"exit"}