1 // RUN: tblgen-lsp-server -tablegen-extra-dir %S -tablegen-extra-dir %S/../../include -lit-test < %s | FileCheck %s
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"tablegen","capabilities":{},"trace":"off"}}
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
5 "uri":"test:///foo.td",
6 "languageId":"tablegen",
8 "text":"include \"include/included.td\""
11 {"jsonrpc":"2.0","id":1,"method":"textDocument/documentLink","params":{
12 "textDocument":{"uri":"test:///foo.td"}
15 // CHECK-NEXT: "jsonrpc": "2.0",
16 // CHECK-NEXT: "result": [
18 // CHECK-NEXT: "range": {
19 // CHECK-NEXT: "end": {
20 // CHECK-NEXT: "character": 29,
21 // CHECK-NEXT: "line": 0
23 // CHECK-NEXT: "start": {
24 // CHECK-NEXT: "character": 8,
25 // CHECK-NEXT: "line": 0
28 // CHECK-NEXT: "target": "file:{{.*}}included.td"
32 {"jsonrpc":"2.0","id":7,"method":"shutdown"}
34 {"jsonrpc":"2.0","method":"exit"}