Skip to content

Commit 062eccb

Browse files
committed
[CodeCompletion] Hide underscored code completion results in argument completion
1 parent aa9c00f commit 062eccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/IDE/ArgumentCompletion.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ void ArgumentTypeCheckCompletionCallback::sawSolutionImpl(const Solution &S) {
115115
auto *CalleeLocator = S.getCalleeLocator(CallLocator);
116116

117117
auto Info = getSelectedOverloadInfo(S, CalleeLocator);
118+
if (Info.Value && Info.Value->shouldHideFromEditor()) {
119+
return;
120+
}
118121

119122
// Find the parameter the completion was bound to (if any), as well as which
120123
// parameters are already bound (so we don't suggest them even when the args

0 commit comments

Comments
 (0)