Skip to content

Commit 5689018

Browse files
committed
Fix build
1 parent 25da841 commit 5689018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SourceKitLSP/Workspace.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ package final class Workspace: Sendable, BuildServerManagerDelegate {
271271
self.syntacticIndex = SyntacticIndex(
272272
determineFilesToScan: { targets in
273273
await orLog("Getting list of files for syntactic index population") {
274-
try await buildServerManager.projectSourceFiles(in: targets)
275-
} ?? [:]
274+
try await buildServerManager.projectSourceFiles(in: targets).compactMap { ($0, $1) }
275+
} ?? []
276276
},
277277
syntacticTests: { [weak self] (snapshot) in
278278
guard let self else {

0 commit comments

Comments
 (0)