This commit is contained in:
Eugene Pankov
2022-09-28 22:56:08 +02:00
parent f57ca9fc56
commit d3d09dfd44

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
}
}