Skip to content

Commit d441798

Browse files
author
Davide Italiano
committed
[IDE/CodeCompletion] Register the request evaluator.
1 parent 749d4b0 commit d441798

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Frontend/Frontend.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,12 @@ bool CompilerInstance::setUpASTContextIfNeeded() {
190190
registerTypeCheckerRequestFunctions(Context->evaluator);
191191

192192
// Migrator, indexing and typo correction need some IDE requests.
193+
// The integrated REPL needs IDE requests for completion.
193194
if (Invocation.getMigratorOptions().shouldRunMigrator() ||
194195
!Invocation.getFrontendOptions().IndexStorePath.empty() ||
195-
Invocation.getLangOptions().TypoCorrectionLimit) {
196+
Invocation.getLangOptions().TypoCorrectionLimit ||
197+
Invocation.getFrontendOptions().RequestedAction ==
198+
FrontendOptions::ActionType::REPL) {
196199
registerIDERequestFunctions(Context->evaluator);
197200
}
198201
if (setUpModuleLoaders())

0 commit comments

Comments
 (0)