fix #134418
This commit is contained in:
parent
596c835be2
commit
5248915ead
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue