Fix GCC build problem with 288f05f related to SmallVector. (#116958)
[llvm-project.git] / mlir / test / mlir-pdll-lsp-server / initialize-params.test
blob554cb0bd5edab8d47fd98425d758288e82810cc1
1 // RUN: mlir-pdll-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:      "completionProvider": {
9 // CHECK-NEXT:        "allCommitCharacters": [
10 // CHECK:             ],
11 // CHECK-NEXT:        "resolveProvider": false,
12 // CHECK-NEXT:        "triggerCharacters": [ 
13 // CHECK:             ]
14 // CHECK-NEXT:      },
15 // CHECK-NEXT:      "definitionProvider": true,
16 // CHECK-NEXT:      "documentLinkProvider": {
17 // CHECK-NEXT:        "resolveProvider": false
18 // CHECK-NEXT:      },
19 // CHECK-NEXT:      "documentSymbolProvider": true,
20 // CHECK-NEXT:      "hoverProvider": true,
21 // CHECK-NEXT:      "inlayHintProvider": true,
22 // CHECK-NEXT:      "referencesProvider": true,
23 // CHECK-NEXT:      "signatureHelpProvider": {
24 // CHECK-NEXT:        "triggerCharacters": [
25 // CHECK-NEXT:          "(",
26 // CHECK-NEXT:          ","
27 // CHECK-NEXT:        ]
28 // CHECK-NEXT:      },
29 // CHECK-NEXT:      "textDocumentSync": {
30 // CHECK-NEXT:        "change": 2,
31 // CHECK-NEXT:        "openClose": true,
32 // CHECK-NEXT:        "save": true
33 // CHECK-NEXT:      }
34 // CHECK-NEXT:    },
35 // CHECK-NEXT:    "serverInfo": {
36 // CHECK-NEXT:      "name": "mlir-pdll-lsp-server",
37 // CHECK-NEXT:      "version": "{{.*}}"
38 // CHECK-NEXT:    }
39 // CHECK-NEXT:  }
40 // -----
41 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
42 //      CHECK:  "id": 3,
43 // CHECK-NEXT:  "jsonrpc": "2.0",
44 // CHECK-NEXT:  "result": null
45 // -----
46 {"jsonrpc":"2.0","method":"exit"}