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"}}
5 // CHECK-NEXT: "jsonrpc": "2.0",
6 // CHECK-NEXT: "result": {
7 // CHECK-NEXT: "capabilities": {
8 // CHECK-NEXT: "completionProvider": {
9 // CHECK-NEXT: "allCommitCharacters": [
11 // CHECK-NEXT: "resolveProvider": false,
12 // CHECK-NEXT: "triggerCharacters": [
15 // CHECK-NEXT: "definitionProvider": true,
16 // CHECK-NEXT: "documentLinkProvider": {
17 // CHECK-NEXT: "resolveProvider": false
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": [
29 // CHECK-NEXT: "textDocumentSync": {
30 // CHECK-NEXT: "change": 2,
31 // CHECK-NEXT: "openClose": true,
32 // CHECK-NEXT: "save": true
35 // CHECK-NEXT: "serverInfo": {
36 // CHECK-NEXT: "name": "mlir-pdll-lsp-server",
37 // CHECK-NEXT: "version": "{{.*}}"
41 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
43 // CHECK-NEXT: "jsonrpc": "2.0",
44 // CHECK-NEXT: "result": null
46 {"jsonrpc":"2.0","method":"exit"}