Remove PromiseLike usage from terminal contrib

Fixes #92646
This commit is contained in:
Daniel Imms
2020-04-09 06:07:15 -07:00
parent 8279cc70d9
commit da1d56500a

View File

@@ -125,7 +125,7 @@ async function detectAvailableWindowsShells(): Promise<IShellDefinition[]> {
// `${process.env['HOMEDRIVE']}\\cygwin\\bin\\bash.exe`
// ]
};
const promises: PromiseLike<IShellDefinition | undefined>[] = [];
const promises: Promise<IShellDefinition | undefined>[] = [];
Object.keys(expectedLocations).forEach(key => promises.push(validateShellPaths(key, expectedLocations[key])));
const shells = await Promise.all(promises);
return coalesce(shells);