[mlir-lsp] Add client information to the InitializationParams
authorRiver Riddle <riddleriver@gmail.com>
Tue, 18 Jul 2023 08:34:57 +0000 (01:34 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 18 Jul 2023 19:27:01 +0000 (12:27 -0700)
commit857b0a1f400b385b27d6c252f74a80f121f46227
tree0fe1ebf24531c031ec31cf2357949a18679f55a7
parent8e024283bd3873891e4b59ee3f3a11589805df97
[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
mlir/include/mlir/Tools/lsp-server-support/Protocol.h
mlir/lib/Tools/lsp-server-support/Protocol.cpp
mlir/test/mlir-lsp-server/initialize-params-invalid.test
mlir/test/mlir-lsp-server/initialize-params.test