diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index 545490da..e4bc36dc 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -426,7 +426,7 @@ void BuildItem(std::vector &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; } }