Skip to content

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 3, 2025

Best reviewed commit by commit. It doesn’t do anything by itself, the goal is to ensure that UpdateIndexStoreTaskDescription instances only has files from a single target and a single language, without which it doesn’t make sense to index multiple files in the same compiler invocation.

…skDescription`

This way we can guarantee that all files passed to `UpdateIndexStoreTaskDescription` belong to the same target, which will simplify multi-file indexing.
…le files

This pushes multi-file indexing one level closer to the actual compiler invocation.
@ahoppen
Copy link
Member Author

ahoppen commented Sep 3, 2025

@swift-ci Please test

@ahoppen ahoppen force-pushed the file-index-batching-preparation branch from b468491 to cbf9fee Compare September 3, 2025 11:23
@ahoppen
Copy link
Member Author

ahoppen commented Sep 3, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 3, 2025

@swift-ci Please test Windows

…the same language

It doesn’t make sense to try and index files with different langauges in a single compiler invocation.
@ahoppen ahoppen force-pushed the file-index-batching-preparation branch from cbf9fee to 7860893 Compare September 3, 2025 15:54
@ahoppen
Copy link
Member Author

ahoppen commented Sep 3, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 3, 2025

@swift-ci Please test Windows

@@ -722,16 +737,20 @@ package final actor SemanticIndexManager {
}
}

/// Update the index store for the given files, assuming that their targets have already been prepared.
/// Update the index store for the given files, assuming that their targets has already been prepared.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Update the index store for the given files, assuming that their targets has already been prepared.
/// Update the index store for the given files, assuming that their target has already been prepared.

But part of some later PR is fine, testing has already run on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants