[lldb-dap] Ensure the IO forwarding threads are managed by the DAP object lifecycle...
[llvm-project.git] / mlir / test / tblgen-lsp-server / compilation_database.test
blobd1a9412af61c7d958507eb6dbf22c65e476bff1c
1 // RUN: echo -e '--- !FileInfo:\n  filepath: "/foo.td"\n  includes: "%/S;%/S/../../include"' > %t.yml
2 // RUN: tblgen-lsp-server -tablegen-compilation-database=%t.yml -lit-test < %s | FileCheck %s
3 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"tablegen","capabilities":{},"trace":"off"}}
4 // -----
5 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
6   "uri":"test:///foo.td",
7   "languageId":"tablegen",
8   "version":1,
9   "text":"include \"include/included.td\""
10 }}}
11 // Check that we can properly process the includes without errors.
12 // CHECK: "method": "textDocument/publishDiagnostics",
13 // CHECK-NEXT: "params": {
14 // CHECK-NEXT:     "diagnostics": [],
15 // CHECK-NEXT:     "uri": "test:///foo.td",
16 // CHECK-NEXT:     "version": 1
17 // CHECK-NEXT:   }
18 // -----
19 {"jsonrpc":"2.0","id":7,"method":"shutdown"}
20 // -----
21 {"jsonrpc":"2.0","method":"exit"}