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.
This commit is contained in:
Alex Hoppen
2024-12-06 11:29:52 -08:00
parent 29619a6be9
commit ddbd6543c4

View File

@@ -329,7 +329,7 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
}
var configuration = WorkspaceConfiguration.default
configuration.skipDependenciesUpdates = true
configuration.skipDependenciesUpdates = !options.backgroundIndexingOrDefault
self.swiftPMWorkspace = try Workspace(
fileSystem: localFileSystem,