UNPKG

@sussudio/platform

Version:

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

33 lines (31 loc) 1.49 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { INativeEnvironmentService } from '../common/environment.mjs'; import { NativeEnvironmentService } from '../node/environmentService.mjs'; export declare const IEnvironmentMainService: import('../../instantiation/common/instantiation.mjs').ServiceIdentifier<IEnvironmentMainService>; /** * A subclass of the `INativeEnvironmentService` to be used only in electron-main * environments. */ export interface IEnvironmentMainService extends INativeEnvironmentService { readonly cachedLanguagesPath: string; readonly backupHome: string; readonly codeCachePath: string | undefined; readonly useCodeCache: boolean; readonly mainIPCHandle: string; readonly mainLockfile: string; readonly disableUpdates: boolean; } export declare class EnvironmentMainService extends NativeEnvironmentService implements IEnvironmentMainService { get cachedLanguagesPath(): string; get backupHome(): string; get mainIPCHandle(): string; get mainLockfile(): string; get disableUpdates(): boolean; get disableKeytar(): boolean; get crossOriginIsolated(): boolean; get codeCachePath(): string | undefined; get useCodeCache(): boolean; }