UNPKG

@sussudio/base

Version:

Internal APIs for VS Code's utilities and user interface building blocks.

21 lines (19 loc) 967 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export interface IPowerShellExeDetails { readonly displayName: string; readonly exePath: string; } /** * Iterates through PowerShell installations on the machine according * to configuration passed in through the constructor. * PowerShell items returned by this object are verified * to exist on the filesystem. */ export declare function enumeratePowerShellInstallations(): AsyncIterable<IPowerShellExeDetails>; /** * Returns the first available PowerShell executable found in the search order. */ export declare function getFirstAvailablePowerShellInstallation(): Promise<IPowerShellExeDetails | null>;