mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-01 02:10:26 +00:00
Skip informative scope foo::
This commit is contained in:
parent
70deeca8ad
commit
56c6ec43df
@ -392,6 +392,11 @@ void BuildItem(std::vector<lsCompletionItem> &out,
|
|||||||
for (auto i = first; i < out.size(); i++)
|
for (auto i = first; i < out.size(); i++)
|
||||||
out[i].parameters_.push_back(text);
|
out[i].parameters_.push_back(text);
|
||||||
break;
|
break;
|
||||||
|
case CodeCompletionString::CK_Informative:
|
||||||
|
if (StringRef(Chunk.Text).endswith("::"))
|
||||||
|
continue;
|
||||||
|
text = Chunk.Text;
|
||||||
|
break;
|
||||||
case CodeCompletionString::CK_ResultType:
|
case CodeCompletionString::CK_ResultType:
|
||||||
result_type = Chunk.Text;
|
result_type = Chunk.Text;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user