From 3d150509602dbf0bdaff120b0373093e5c967488 Mon Sep 17 00:00:00 2001 From: Eric Fritz Date: Wed, 27 Nov 2024 23:48:44 -0600 Subject: [PATCH] Fix cancellation notification mismatch The server registers a notification handler on `CancelledNotificationSchema`, but is never called on client cancellation because of a mismatch in the method name. This fixes that mismatch. --- src/shared/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/protocol.ts b/src/shared/protocol.ts index 03dffa778..42cec89a5 100644 --- a/src/shared/protocol.ts +++ b/src/shared/protocol.ts @@ -421,7 +421,7 @@ export abstract class Protocol< this._transport ?.send({ jsonrpc: "2.0", - method: "cancelled", + method: "notifications/cancelled", params: { requestId: messageId, reason: String(reason),