Skip to content

Commit 52f7c41

Browse files
authored
Forward target change notifications to clients (#9520)
This ensures that targets know to re-request the list of targets when the underlyinf Swift Build server regenerates the build description
1 parent 8ce16d6 commit 52f7c41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/SwiftPMBuildServer/SwiftPMBuildServer.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ public actor SwiftPMBuildServer: QueueBasedMessageHandler {
165165
case is OnBuildLogMessageNotification:
166166
// If we receive a build log message notification, forward it on to the client
167167
connectionToClient.send(notification)
168+
case is OnBuildTargetDidChangeNotification:
169+
// If the underlying server notifies us of target updates, forward the notification to the client
170+
connectionToClient.send(notification)
168171
default:
169172
logToClient(.warning, "SwiftPM build server received unknown notification type: \(notification)")
170173
}

0 commit comments

Comments
 (0)