Commit 5f3f2eb0 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

lsp: Handle client/RegisterCapability

vscode-languageserver based servers terminate if we send error in
response.

(cherry picked from commit 33a748a4)
parent 5ad03fcf
Pipeline #113819 failed with stage
in 4 minutes and 18 seconds
......@@ -1561,7 +1561,7 @@ public:
};
auto h = responseHandler<QList<LSPWorkspaceFolder>>(prepareResponse(msgid), workspaceFolders);
Q_EMIT q->workspaceFolders(h, handled);
} else if (method == QLatin1String("window/workDoneProgress/create")) {
} else if (method == QLatin1String("window/workDoneProgress/create") || method == QLatin1String("client/registerCapability")) {
// void reply to accept
// that should trigger subsequent progress notifications
// for now; also no need to extract supplied token
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment