Files
Alex Hoppen 531f8a9793 Don’t update Package.resolved from sourcekit-lsp
`SwiftPMWorkspace.reloadPackage` called `loadPackageGraph`, which causes package resolution and could thus update `Package.resolved`. This caused race conditions when `swift package update` was run from terminal while sourcekit-lsp is running since sourcekit-lsp was notified about the file changes and thus reloaded the pacakge to get build settings for the modified files.

Set `forceResolvedVersions` to only resolve packages based on the versions in `Package.resolved`, eliminating this problem.

Fixes https://github.com/apple/sourcekit-lsp/issues/707
rdar://105173375
2023-07-07 15:33:01 +02:00
..