[mlir][linalg] Fix dim(iter_arg) canonicalization
[llvm-project.git] / mlir / test / mlir-lsp-server / initialize-params.test
blobdb41a61a8a1a87968a40f3a38f4f6442db58e6f1
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"}}
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:      "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
16 // CHECK-NEXT:      }
17 // CHECK-NEXT:    },
18 // CHECK-NEXT:    "serverInfo": {
19 // CHECK-NEXT:      "name": "mlir-lsp-server",
20 // CHECK-NEXT:      "version": "{{.*}}"
21 // CHECK-NEXT:    }
22 // CHECK-NEXT:  }
23 // -----
24 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
25 //      CHECK:  "id": 3,
26 // CHECK-NEXT:  "jsonrpc": "2.0",
27 // CHECK-NEXT:  "result": null
28 // -----
29 {"jsonrpc":"2.0","method":"exit"}