Skip to content

Commit 3e91c41

Browse files
authored
Merge pull request swiftlang#35187 from bnbarham/completion-zero-check-interval
[CodeCompletion] Zero check interval should always check dependencies
2 parents 75814e9 + 428516c commit 3e91c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IDE/CompletionInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ bool CompletionInstance::shouldCheckDependencies() const {
607607
auto now = system_clock::now();
608608
auto threshold = DependencyCheckedTimestamp +
609609
seconds(Opts.DependencyCheckIntervalSecond);
610-
return threshold < now;
610+
return threshold <= now;
611611
}
612612

613613
void CompletionInstance::setOptions(CompletionInstance::Options NewOpts) {

0 commit comments

Comments
 (0)