Skip to content

Commit d78b83a

Browse files
committed
Exit early if no changes to process
1 parent f8f0037 commit d78b83a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SourceKitBazelBSP/RequestHandlers/WatchedFiles/WatchedFileChangeHandler.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ final class WatchedFileChangeHandler {
6060
return true
6161
}
6262

63+
guard !changes.isEmpty else {
64+
logger.info("No (supported) file changes to process.")
65+
return
66+
}
67+
6368
logger.info("Received \(changes.count) file changes")
6469

6570
// First, calculate deleted targets before we clear them from the targetStore

0 commit comments

Comments
 (0)