Skip to content

Commit

Permalink
Skip informative scope foo::
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Sep 17, 2018
1 parent 70deeca commit 56c6ec4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/messages/textDocument_completion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ void BuildItem(std::vector<lsCompletionItem> &out,
for (auto i = first; i < out.size(); i++)
out[i].parameters_.push_back(text);
break;
case CodeCompletionString::CK_Informative:
if (StringRef(Chunk.Text).endswith("::"))
continue;
text = Chunk.Text;
break;
case CodeCompletionString::CK_ResultType:
result_type = Chunk.Text;
continue;
Expand Down

0 comments on commit 56c6ec4

Please sign in to comment.