We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cf9f15 + 4ad6eb3 commit 7fbb39eCopy full SHA for 7fbb39e
Sources/SemanticIndex/SemanticIndexManager.swift
@@ -193,6 +193,9 @@ public final actor SemanticIndexManager {
193
signposter.endInterval("Preparing", state)
194
}
195
await orLog("Generating build graph") { try await self.buildSystemManager.generateBuildGraph() }
196
+ // Ensure that we have an up-to-date indexstore-db. Waiting for the indexstore-db to be updated is cheaper than
197
+ // potentially not knowing about unit files, which causes the corresponding source files to be re-indexed.
198
+ index.pollForUnitChangesAndWait()
199
let index = index.checked(for: .modifiedFiles)
200
let filesToIndex = await self.buildSystemManager.sourceFiles().lazy.map(\.uri)
201
.filter { uri in
0 commit comments