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(
1008
1008
// problems with restating requirements in protocols.
1009
1009
identical = false ;
1010
1010
1011
- if (cs.Context . CompletionCallback ) {
1011
+ if (cs.isForCodeCompletion () ) {
1012
1012
// Don't rank based on overload choices of function calls that contain the
1013
1013
// code completion token.
1014
1014
ASTNode anchor = simplifyLocatorToAnchor (overload.locator );
Original file line number Diff line number Diff line change @@ -945,7 +945,7 @@ StepResult ConjunctionStep::resume(bool prevFailed) {
945
945
946
946
if (Solutions.size () == 1 ) {
947
947
auto score = Solutions.front ().getFixedScore ();
948
- if (score.Data [SK_Fix] > 0 && !CS.getASTContext (). CompletionCallback )
948
+ if (score.Data [SK_Fix] > 0 && !CS.isForCodeCompletion () )
949
949
Producer.markExhausted ();
950
950
}
951
951
} else if (Solutions.size () != 1 ) {
You can’t perform that action at this time.
0 commit comments