This commit is contained in:
Megan Rogge 2021-11-12 19:29:56 +00:00 committed by GitHub
parent 596c835be2
commit 5248915ead

View file

@ -236,7 +236,7 @@ async function getWslProfiles(wslPath: string, defaultProfileName: string | unde
const profiles: ITerminalProfile[] = [];
const distroOutput = await new Promise<string>((resolve, reject) => {
// wsl.exe output is encoded in utf16le (ie. A -> 0x4100)
cp.exec('wsl.exe -l -q', { encoding: 'utf16le' }, (err, stdout) => {
cp.exec('wsl.exe -l -q', { encoding: 'utf16le', timeout: 1000 }, (err, stdout) => {
if (err) {
return reject('Problem occurred when getting wsl distros');
}