diff options
author | Brian Gesiak <brian@modocache.io> | 2024-04-24 15:14:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 15:14:38 -0400 |
commit | 37e13d4924841bd84edb8c67c667d6d2a6c2bc63 (patch) | |
tree | 0d87125272dd45331cf4416cc9191cc0f9e62f36 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 57794835279669358ff2828d659eb7133fc0e4bf (diff) | |
download | llvm-37e13d4924841bd84edb8c67c667d6d2a6c2bc63.zip llvm-37e13d4924841bd84edb8c67c667d6d2a6c2bc63.tar.gz llvm-37e13d4924841bd84edb8c67c667d6d2a6c2bc63.tar.bz2 |
[mlir-lsp] Log invalid notification params (#89856)
When the `lsp::MessageHandler` processes a request with invalid params
(that is, the "params" JSON sent along with the request does not match
the shape expected by the message handler for the given method), it
replies by sending an error response to the client.
On the other hand, the language server protocol specifies that
notifications must not result in responses. As a result, when the
JSON params accompanying a notification cannot be parsed, no error is
sent back; there is no indication that an error has occurred at all.
This patch adds an error log for that case. Although clients cannot
parse error logs, this at least provides an indication that something
went wrong on the language server side.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions