UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

15 lines (14 loc) 712 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { net } from 'electron'; import { RequestService as NodeRequestService } from '../node/requestService.mjs'; function getRawRequest(options) { return net.request; } export class RequestMainService extends NodeRequestService { request(options, token) { return super.request({ ...(options || {}), getRawRequest, isChromiumNetwork: true }, token); } }