-
Notifications
You must be signed in to change notification settings - Fork 327
Support indexing of mulitple Swift files within the same compiler invocation #2293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ed5cf4f
to
231214d
Compare
@swift-ci Please test |
…files We should not take the number of files in an `UpdateIndexStoreTaskDescription` as an indication on how important the task is. If we do need this functionality, eg. because we want to update the index of files with syntactic matches for a rename term, this should be communicated using a specific purpose similar to `TargetPreparationPurpose`. Since the only reason we update the index store for a file right now is background indexing, such a check is not needed.
231214d
to
d1981de
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
Thanks! Exciting to see this in :) |
if let uri = uris.only { | ||
header = "Build settings for \(uri.forLogging)" | ||
} else if let firstUri = uris.first { | ||
header = "Build settings for \(firstUri.forLogging) and \(firstUri) and \(uris.count - 1) others" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header = "Build settings for \(firstUri.forLogging) and \(firstUri) and \(uris.count - 1) others" | |
header = "Build settings for \(firstUri.forLogging) and \(uris.count - 1) others" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(tests have already passed, another PR is fine)
Since the indexing performance of most projects is bound by target preparation instead of actual indexing right now, I wasn’t able to measure any performance benefits of this. But it seems like a good thing to add regardless, because it might save CPU cycles.
Fixes #1268