| 777 | } |
| 778 | |
| 779 | class 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected