This commit is contained in:
Eugene Pankov 2022-09-28 22:56:08 +02:00
parent f57ca9fc56
commit d3d09dfd44
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -74,7 +74,7 @@ export class WindowsStockShellsProvider extends ShellProvider {
private async getPowerShellPath () {
for (const name of ['pwsh.exe', 'powershell.exe']) {
if (await promisify(hasbin)(name)) {
if (await new Promise(resolve => hasbin(name, resolve))) {
return name
}
}