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.
This commit is contained in:
parent
5bfa6163d1
commit
3d15050960
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue