We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e155d9 + ec70a40 commit faf3be4Copy full SHA for faf3be4
lib/IDE/CompletionInstance.cpp
@@ -324,6 +324,11 @@ bool swift::ide::CompletionInstance::performOperation(
324
// source text. That breaks an invariant of syntax tree building.
325
Invocation.getLangOptions().BuildSyntaxTree = false;
326
327
+ // This validation may call stat(2) many times. Disable it to prevent
328
+ // performance regression.
329
+ Invocation.getSearchPathOptions().DisableModulesValidateSystemDependencies =
330
+ true;
331
+
332
// FIXME: ASTScopeLookup doesn't support code completion yet.
333
Invocation.disableASTScopeLookup();
334
0 commit comments