Skip to content

Commit 3d15050

Browse files
authored
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.
1 parent 5bfa616 commit 3d15050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export abstract class Protocol<
421421
this._transport
422422
?.send({
423423
jsonrpc: "2.0",
424-
method: "cancelled",
424+
method: "notifications/cancelled",
425425
params: {
426426
requestId: messageId,
427427
reason: String(reason),

0 commit comments

Comments
 (0)