diff options
author | Sandeep Somavarapu <sasomava@microsoft.com> | 2022-07-27 15:42:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 15:42:42 +0300 |
commit | 4372050da37ed58d6bb8d3fee64e133c1320aeb8 (patch) | |
tree | 77a22f3cb6a254a2cf1359425f328d1c53002a96 /src/vs | |
parent | 45e0ad107ab50573c8c089338ee10d65aa3889fc (diff) | |
parent | eca4972002906eff6e936e6f4625b51725e37761 (diff) |
Merge pull request #156094 from FantasqueX/patch-1
Replace the deprecated canceled with Cancellation Error.
Diffstat (limited to 'src/vs')
-rw-r--r-- | src/vs/platform/request/node/requestService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vs/platform/request/node/requestService.ts b/src/vs/platform/request/node/requestService.ts index 640526f89a9..fd568328255 100644 --- a/src/vs/platform/request/node/requestService.ts +++ b/src/vs/platform/request/node/requestService.ts @@ -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'; @@ -170,7 +170,7 @@ export class RequestService extends Disposable implements IRequestService { token.onCancellationRequested(() => { req.abort(); - e(canceled()); + e(new CancellationError()); }); }); } |