Skip to content

Commit faf3be4

Browse files
authored
Merge pull request #29180 from rintaro/ide-completion-rdar58550697
[CodeCompletion] Disable module system headers validation
2 parents 5e155d9 + ec70a40 commit faf3be4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/IDE/CompletionInstance.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ bool swift::ide::CompletionInstance::performOperation(
324324
// source text. That breaks an invariant of syntax tree building.
325325
Invocation.getLangOptions().BuildSyntaxTree = false;
326326

327+
// This validation may call stat(2) many times. Disable it to prevent
328+
// performance regression.
329+
Invocation.getSearchPathOptions().DisableModulesValidateSystemDependencies =
330+
true;
331+
327332
// FIXME: ASTScopeLookup doesn't support code completion yet.
328333
Invocation.disableASTScopeLookup();
329334

0 commit comments

Comments
 (0)