File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Sources/BuildSystemIntegration Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -769,8 +769,10 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
769
769
}
770
770
771
771
package func didChangeWatchedFiles( notification: OnWatchedFilesDidChangeNotification ) async {
772
- if notification. changes. contains ( where: { self . fileEventShouldTriggerPackageReload ( event: $0) } ) {
773
- logger. log ( " Reloading package because of file change " )
772
+ if let packageReloadTriggerEvent = notification. changes. first ( where: {
773
+ self . fileEventShouldTriggerPackageReload ( event: $0)
774
+ } ) {
775
+ logger. log ( " Reloading package because \( packageReloadTriggerEvent. uri. forLogging) changed " )
774
776
await packageLoadingQueue. async {
775
777
await orLog ( " Reloading package " ) {
776
778
try await self . reloadPackageAssumingOnPackageLoadingQueue ( )
You can’t perform that action at this time.
0 commit comments