Skip to content

Commit ddbd654

Browse files
committed
Allow dependency updates in the index-build folder
When we have background indexing enabled, SourceKit-LSP manages the dependencies. We should thus allow it to update them, eg. after `Package.resolved` was updated.
1 parent 29619a6 commit ddbd654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/BuildSystemIntegration/SwiftPMBuildSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
329329
}
330330

331331
var configuration = WorkspaceConfiguration.default
332-
configuration.skipDependenciesUpdates = true
332+
configuration.skipDependenciesUpdates = !options.backgroundIndexingOrDefault
333333

334334
self.swiftPMWorkspace = try Workspace(
335335
fileSystem: localFileSystem,

0 commit comments

Comments
 (0)