MCPcopy
hub / github.com/PowerShell/vscode-powershell / PossiblePowerShellExe

Class PossiblePowerShellExe

src/platform.ts:779–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779class PossiblePowerShellExe implements IPossiblePowerShellExe {
780 constructor(
781 public readonly exePath: string,
782 public readonly displayName: string,
783 private knownToExist?: boolean,
784 public readonly supportsProperArguments = true,
785 public readonly suppressWarning = false,
786 ) {}
787
788 public async exists(): Promise<boolean> {
789 this.knownToExist ??= await utils.checkIfFileExists(this.exePath);
790 return this.knownToExist ?? false;
791 }
792}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected