This commit is contained in:
Eugene Pankov
2020-04-20 11:25:20 +02:00
parent f8645df60c
commit d36ef2e48e
5 changed files with 9 additions and 9 deletions

View File

@@ -88,9 +88,9 @@ export class WSLShellProvider extends ShellProvider {
if (!childKey.DistributionName) {
continue
}
const wslVersion = (childKey.Flags.value & 8) ? 2 : 1
const wslVersion = childKey.Flags.value & 8 ? 2 : 1
const name = childKey.DistributionName.value
const fsBase = (wslVersion === 2) ? `\\\\wsl$\\${name}` : (childKey.BasePath.value as string + '\\rootfs')
const fsBase = wslVersion === 2 ? `\\\\wsl$\\${name}` : childKey.BasePath.value as string + '\\rootfs'
const shell: Shell = {
id: `wsl-${slugify(name)}`,
name: `WSL / ${name}`,