mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
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:
parent
f0400fdcf2
commit
a5b8def411
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user