import*asfsfrom'mz/fs'import{Injectable}from'@angular/core'import{HostAppService,Platform}from'terminus-core'import{ShellProvider,IShell}from'../api'@Injectable()exportclassWSLShellProviderextendsShellProvider{constructor(privatehostApp:HostAppService,){super()}asyncprovide():Promise<IShell[]>{if(this.hostApp.platform!==Platform.Windows){return[]}constwslPath=`${process.env.windir}\\system32\\bash.exe`if(!awaitfs.exists(wslPath)){return[]}return[{id:'wsl',name:'Bash on Windows',