[mlir-lsp-server] Add support for sending diagnostics to the client
authorRiver Riddle <riddleriver@gmail.com>
Wed, 12 May 2021 20:01:59 +0000 (13:01 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 12 May 2021 20:02:25 +0000 (13:02 -0700)
commitb3911cdfc89f3b560fc00048d6f99280268fa63c
tree26427cf4616b0c06caee075a36b6ce677969b0f1
parent30b7dfafdb620420ad3498aae01130bc7e2fb9cd
[mlir-lsp-server] Add support for sending diagnostics to the client

This allows for diagnostics emitted during parsing/verification to be surfaced to the user by the language client, as opposed to just being emitted to the logs like they are now.

Differential Revision: https://reviews.llvm.org/D102293
mlir/include/mlir/Parser/AsmParserState.h
mlir/lib/Parser/AsmParserState.cpp
mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.h
mlir/lib/Tools/mlir-lsp-server/lsp/Protocol.cpp
mlir/lib/Tools/mlir-lsp-server/lsp/Protocol.h
mlir/lib/Tools/mlir-lsp-server/lsp/Transport.cpp
mlir/lib/Tools/mlir-lsp-server/lsp/Transport.h
mlir/test/mlir-lsp-server/diagnostics.test [new file with mode: 0644]