Remove chunks with CK_Information kind from insertText. (#78)

Without this ccls inserts "size() const" in the following scenario:

std::string text;
text.si| <-- Trigger completion here and pick "size"
This commit is contained in:
Riatre Foo 2018-09-22 23:57:36 +08:00 committed by Fangrui Song
parent f0400fdcf2
commit a5b8def411

View File

@ -414,7 +414,7 @@ void BuildItem(std::vector<lsCompletionItem> &out,
out[i].insertText +=
"${" + std::to_string(out[i].parameters_.size()) + ":" + text + "}";
out[i].insertTextFormat = lsInsertTextFormat::Snippet;
} else {
} else if (Kind != CodeCompletionString::CK_Informative) {
out[i].insertText += text;
}
}