Files
clang-p2996/mlir/test/mlir-lsp-server/initialize-params-invalid.test
River Riddle 857b0a1f40 [mlir-lsp] Add client information to the InitializationParams
This is specified in the spec, but we just never really needed it. This
allows for users of the LSP libraries to inspect information about the
client that is connected to the server.

Differential Revision: https://reviews.llvm.org/D155566
2023-07-18 12:27:01 -07:00

13 lines
516 B
Plaintext

// RUN: mlir-lsp-server -lit-test < %s | FileCheck -strict-whitespace %s
// Test with invalid initialize request parameters
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":"","rootUri":"test:///workspace","capabilities":{},"clientInfo":{"name": 10},"trace":"verbose"}}
// CHECK: "id": 0,
// CHECK-NEXT: "jsonrpc": "2.0",
// CHECK-NEXT: "result": {
// CHECK-NEXT: "capabilities": {
// ...
// -----
{"jsonrpc":"2.0","id":3,"method":"shutdown"}
// -----
{"jsonrpc":"2.0","method":"exit"}