diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2026-09-16 11:16:16 +0200 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2026-09-21 07:01:10 +0000 |
| commit | 4b64bdec73fdc9965dcbfd2f448fd711c03cb6ec (patch) | |
| tree | 6a30134f4ca807c478daf6d605f02dfc8b750506 | |
| parent | 543d91301c16484c7ac3e02526a276ca514ed8fb (diff) | |
qmlls: remove unused cancel notification handler
The warning we emit does not make sense for the user (its client sent an
invalid cancellation), and the "canceled" field is never read.
Therefore, remove this notification handler.
This is a preparation step for QTBUG-150326 that tries to remove the
requestsInProgress mechanism.
Pick-to: 6.12
Task-number: QTBUG-150326
Change-Id: Ic5d5438752da57bb323819b6592ed20a87f11b9a
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
| -rw-r--r-- | src/qmlls/qlanguageserver.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/qmlls/qlanguageserver.cpp b/src/qmlls/qlanguageserver.cpp index 14add7e10e..e6812e6f3b 100644 --- a/src/qmlls/qlanguageserver.cpp +++ b/src/qmlls/qlanguageserver.cpp @@ -168,18 +168,6 @@ void QLanguageServer::receiveData(const QByteArray &data, bool isEndOfMessage) void QLanguageServer::registerHandlers(QLanguageServerProtocol *protocol) { - QObject::connect(notifySignals(), &QLspNotifySignals::receivedCancelNotification, this, - [this](const QLspSpecification::Notifications::CancelParamsType ¶ms) { - Q_D(QLanguageServer); - QJsonValue id = QTypedJson::toJsonValue(params.id); - QMutexLocker l(&d->mutex); - if (d->requestsInProgress.contains(id)) - d->requestsInProgress[id].canceled = true; - else - qCWarning(lspServerLog) - << "Ignoring cancellation of non in progress request" << id; - }); - protocol->registerInitializeRequestHandler( [this](const QByteArray &, const QLspSpecification::Requests::InitializeParamsType ¶ms, |
