forked from qt-creator/qt-creator
Lua: Fix language client
Change-Id: If87adc59e997626ad4ca77a75802f7c068cf26e5 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <mua@spyro-soft.com>
This commit is contained in:
@@ -44,9 +44,10 @@ public:
|
||||
|
||||
std::optional<LanguageServerProtocol::ResponseHandler> responseHandler() const override
|
||||
{
|
||||
if (!m_id.isValid())
|
||||
if (!m_id.isValid()) {
|
||||
qWarning() << "Invalid 'id' in request:" << toJsonObject();
|
||||
return std::nullopt;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
return LanguageServerProtocol::ResponseHandler{
|
||||
m_id, [callback = m_callback](const JsonRpcMessage &msg) {
|
||||
|
Reference in New Issue
Block a user