Skip to content

Commit

Permalink
Merge pull request #156094 from FantasqueX/patch-1
Browse files Browse the repository at this point in the history
Replace the deprecated canceled with Cancellation Error.
  • Loading branch information
sandy081 authored Jul 27, 2022
2 parents 45e0ad1 + eca4972 commit 4372050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/platform/request/node/requestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { parse as parseUrl } from 'url';
import { Promises } from 'vs/base/common/async';
import { streamToBufferReadableStream } from 'vs/base/common/buffer';
import { CancellationToken } from 'vs/base/common/cancellation';
import { canceled } from 'vs/base/common/errors';
import { CancellationError } from 'vs/base/common/errors';
import { Disposable } from 'vs/base/common/lifecycle';
import * as streams from 'vs/base/common/stream';
import { isBoolean, isNumber } from 'vs/base/common/types';
Expand Down Expand Up @@ -170,7 +170,7 @@ export class RequestService extends Disposable implements IRequestService {

token.onCancellationRequested(() => {
req.abort();
e(canceled());
e(new CancellationError());
});
});
}
Expand Down

0 comments on commit 4372050

Please sign in to comment.