Skip to content

Emit a log message when we receive a cancel request notification #1904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=6)
import Foundation
package import LanguageServerProtocol
import LanguageServerProtocolJSONRPC
import SKLogging

#if compiler(>=6)
package import LanguageServerProtocol
package import SwiftExtensions
#else
import Foundation
import LanguageServerProtocol
import SKLogging
import SwiftExtensions
#endif

Expand Down Expand Up @@ -180,6 +180,7 @@ extension QueueBasedMessageHandler {
// are currently handling. Ordering is not important here. We thus don't
// need to execute it on `messageHandlingQueue`.
if let notification = notification as? CancelRequestNotification {
logger.log("Received cancel request notification: \(notification.forLogging)")
self.messageHandlingHelper.cancelRequest(id: notification.id)
return
}
Expand Down