UNPKG

@sussudio/platform

Version:

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

26 lines (24 loc) 1.23 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /// <reference types="node" /> import { IConfigurationService } from '../../configuration/common/configuration.mjs'; import { ILogService } from '../../log/common/log.mjs'; import { ITerminalExecutable, ITerminalProfile, ITerminalProfileSource } from '../common/terminal.mjs'; export declare function detectAvailableProfiles( profiles: unknown, defaultProfile: unknown, includeDetectedProfiles: boolean, configurationService: IConfigurationService, shellEnv?: typeof process.env, fsProvider?: IFsProvider, logService?: ILogService, variableResolver?: (text: string[]) => Promise<string[]>, testPwshSourcePaths?: string[], ): Promise<ITerminalProfile[]>; export interface IFsProvider { existsFile(path: string): Promise<boolean>; readFile(path: string): Promise<Buffer>; } export type IUnresolvedTerminalProfile = ITerminalExecutable | ITerminalProfileSource | null;