File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ SolutionCompareResult ConstraintSystem::compareSolutions(
10081008 // problems with restating requirements in protocols.
10091009 identical = false ;
10101010
1011- if (cs.Context . CompletionCallback ) {
1011+ if (cs.isForCodeCompletion () ) {
10121012 // Don't rank based on overload choices of function calls that contain the
10131013 // code completion token.
10141014 ASTNode anchor = simplifyLocatorToAnchor (overload.locator );
Original file line number Diff line number Diff line change @@ -945,7 +945,7 @@ StepResult ConjunctionStep::resume(bool prevFailed) {
945945
946946 if (Solutions.size () == 1 ) {
947947 auto score = Solutions.front ().getFixedScore ();
948- if (score.Data [SK_Fix] > 0 && !CS.getASTContext (). CompletionCallback )
948+ if (score.Data [SK_Fix] > 0 && !CS.isForCodeCompletion () )
949949 Producer.markExhausted ();
950950 }
951951 } else if (Solutions.size () != 1 ) {
You can’t perform that action at this time.
0 commit comments