From 7b4338326015d70ada25d40d56ebd367b2a69771 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Thu, 2 Jan 2025 14:17:23 +0100 Subject: [PATCH] Emit a log message when we receive a cancel request notification --- .../QueueBasedMessageHandler.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Sources/LanguageServerProtocolExtensions/QueueBasedMessageHandler.swift b/Sources/LanguageServerProtocolExtensions/QueueBasedMessageHandler.swift index 28cc7d85a..4be7b9c61 100644 --- a/Sources/LanguageServerProtocolExtensions/QueueBasedMessageHandler.swift +++ b/Sources/LanguageServerProtocolExtensions/QueueBasedMessageHandler.swift @@ -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 @@ -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 }