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 @@ -764,8 +764,10 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
764
764
}
765
765
766
766
package func didChangeWatchedFiles( notification: OnWatchedFilesDidChangeNotification ) async {
767
- if notification. changes. contains ( where: { self . fileEventShouldTriggerPackageReload ( event: $0) } ) {
768
- logger. log ( " Reloading package because of file change " )
767
+ if let packageReloadTriggerEvent = notification. changes. first ( where: {
768
+ self . fileEventShouldTriggerPackageReload ( event: $0)
769
+ } ) {
770
+ logger. log ( " Reloading package because \( packageReloadTriggerEvent. uri. forLogging) changed " )
769
771
await packageLoadingQueue. async {
770
772
await orLog ( " Reloading package " ) {
771
773
try await self . reloadPackageAssumingOnPackageLoadingQueue ( )
You can’t perform that action at this time.
0 commit comments