Fixed completion item object.

This commit is contained in:
Martín Lucas Golini
2023-02-01 02:46:35 -03:00
parent 4a2546f6bf
commit 0aa6c4314e

View File

@@ -821,6 +821,8 @@ void LSPClientServer::initialize() {
{ "formats", { "relative" } },
};
json completionItem{ { "snippetSupport", true } };
json capabilities{
{ "textDocument",
json{
@@ -832,7 +834,7 @@ void LSPClientServer::initialize() {
{ "synchronization", json{ { "didSave", true } } },
{ "selectionRange", json{ { "dynamicRegistration", false } } },
{ "hover", json{ { "contentFormat", { "plaintext", "markdown" } } } },
{ "completion", json{ "completionItem", json{ { "snippetSupport", true } } } },
{ "completion", completionItem },
} },
{ "window", json{ { "workDoneProgress", true } } },
//{ "workspace", json{ { "workspaceFolders", true }, { "configuration", false } } },