@@ -273,8 +273,8 @@ package final actor SemanticIndexManager {
273
273
// potentially not knowing about unit files, which causes the corresponding source files to be re-indexed.
274
274
index. pollForUnitChangesAndWait ( )
275
275
await testHooks. buildGraphGenerationDidFinish ? ( )
276
- // FIXME: (async-workaround) Ideally this would be a type like any Collection<DocumentURI> & Sendable but that
277
- // doesn't work due to rdar ://132374933
276
+ // TODO: Ideally this would be a type like any Collection<DocumentURI> & Sendable but that doesn't work due to
277
+ // https ://github.com/swiftlang/swift/issues/75602
278
278
var filesToIndex : [ DocumentURI ] = await self . buildSystemManager. sourceFiles ( ) . lazy. map ( \. uri)
279
279
if !indexFilesWithUpToDateUnit {
280
280
let index = index. checked ( for: . modifiedFiles)
@@ -626,9 +626,9 @@ package final actor SemanticIndexManager {
626
626
627
627
var indexTasks : [ Task < Void , Never > ] = [ ]
628
628
629
- // TODO (indexing) : When we can index multiple targets concurrently in SwiftPM, increase the batch size to half the
629
+ // TODO: When we can index multiple targets concurrently in SwiftPM, increase the batch size to half the
630
630
// processor count, so we can get parallelism during preparation.
631
- // https://github.com/swiftlang/sourcekit-lsp/issues/1262
631
+ // ( https://github.com/swiftlang/sourcekit-lsp/issues/1262)
632
632
for targetsBatch in sortedTargets. partition ( intoBatchesOfSize: 1 ) {
633
633
let preparationTaskID = UUID ( )
634
634
let indexTask = Task ( priority: priority) {
@@ -638,9 +638,9 @@ package final actor SemanticIndexManager {
638
638
// And after preparation is done, index the files in the targets.
639
639
await withTaskGroup ( of: Void . self) { taskGroup in
640
640
for target in targetsBatch {
641
- // TODO (indexing) : Once swiftc supports indexing of multiple files in a single invocation, increase the
642
- // batch size to allow it to share AST builds between multiple files within a target.
643
- // https://github.com/swiftlang/sourcekit-lsp/issues/1268
641
+ // TODO: Once swiftc supports indexing of multiple files in a single invocation, increase the batch size to
642
+ // allow it to share AST builds between multiple files within a target.
643
+ // ( https://github.com/swiftlang/sourcekit-lsp/issues/1268)
644
644
for fileBatch in filesByTarget [ target] !. partition ( intoBatchesOfSize: 1 ) {
645
645
taskGroup. addTask {
646
646
await self . updateIndexStore (
0 commit comments