Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/IDE/CompletionInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ bool swift::ide::CompletionInstance::performOperation(
// source text. That breaks an invariant of syntax tree building.
Invocation.getLangOptions().BuildSyntaxTree = false;

// This validation may call stat(2) many times. Disable it to prevent
// performance regression.
Invocation.getSearchPathOptions().DisableModulesValidateSystemDependencies =
true;

// FIXME: ASTScopeLookup doesn't support code completion yet.
Invocation.disableASTScopeLookup();

Expand Down