We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3cab2 commit 881a0ceCopy full SHA for 881a0ce
src/shared/protocol.ts
@@ -278,7 +278,7 @@ export abstract class Protocol<
278
}
279
280
private _onprogress(notification: ProgressNotification): void {
281
- const { progress, total, progressToken } = notification.params;
+ const { progressToken, ...params } = notification.params;
282
const handler = this._progressHandlers.get(Number(progressToken));
283
if (handler === undefined) {
284
this._onerror(
@@ -289,7 +289,7 @@ export abstract class Protocol<
289
return;
290
291
292
- handler({ progress, total });
+ handler(params);
293
294
295
private _onresponse(response: JSONRPCResponse | JSONRPCError): void {
0 commit comments