Commit cdbb7572 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

lsp: specify codeActionKind valueSet

Otherwise some servers refuse to provide any actions

(cherry picked from commit 1f5bd3ea)
parent 07d79251
Pipeline #273745 passed with stage
in 4 minutes and 23 seconds
......@@ -1330,7 +1330,16 @@ private:
{
// clang-format off
QJsonObject codeAction{{QStringLiteral("codeActionLiteralSupport"),
QJsonObject{{QStringLiteral("codeActionKind"), QJsonObject{{QStringLiteral("valueSet"), QJsonArray()}}}}}};
QJsonObject{{
QStringLiteral("codeActionKind"), QJsonObject{{
QStringLiteral("valueSet"), QJsonArray({
QStringLiteral("quickfix"),
QStringLiteral("refactor"),
QStringLiteral("source")
})
}}
}}
}};
QJsonObject semanticTokens{{QStringLiteral("requests"),
QJsonObject{
......
Supports Markdown
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