Skip to content

Commit 8c62fb5

Browse files
committed
Return after handling a CancelRequestNotification
We were dispatching the notification to `messageHandlingQueue`, which then didn’t do anything with it. That’s not necessary.
1 parent 76a0db7 commit 8c62fb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ extension SourceKitLSPServer: MessageHandler {
551551
// are currently handling. Ordering is not important here. We thus don't
552552
// need to execute it on `messageHandlingQueue`.
553553
self.cancelRequest(params)
554+
return
554555
}
555556

556557
let signposter = Logger(subsystem: LoggingScope.subsystem, category: "message-handling")

0 commit comments

Comments
 (0)