1 // RUN: mlir-lsp-server -lit-test < %s | FileCheck -strict-whitespace %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: "documentSymbolProvider": false,
10 // CHECK-NEXT: "hoverProvider": true,
11 // CHECK-NEXT: "referencesProvider": true,
12 // CHECK-NEXT: "textDocumentSync": {
13 // CHECK-NEXT: "change": 1,
14 // CHECK-NEXT: "openClose": true,
15 // CHECK-NEXT: "save": true
18 // CHECK-NEXT: "serverInfo": {
19 // CHECK-NEXT: "name": "mlir-lsp-server",
20 // CHECK-NEXT: "version": "{{.*}}"
24 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
26 // CHECK-NEXT: "jsonrpc": "2.0",
27 // CHECK-NEXT: "result": null
29 {"jsonrpc":"2.0","method":"exit"}