allow selecting windows vibrancy type (fixes #460)

This commit is contained in:
Eugene Pankov
2018-10-13 04:30:12 -07:00
parent 7b33d89032
commit 8f0f1b19df
8 changed files with 42 additions and 9 deletions

View File

@@ -29,12 +29,14 @@ export class TerminalService {
async getShells (): Promise<IShell[]> {
let shellLists = await Promise.all(this.config.enabledServices(this.shellProviders).map(x => x.provide()))
return shellLists.reduce((a, b) => a.concat(b))
return shellLists.reduce((a, b) => a.concat(b), [])
}
async reloadShells () {
this.shells = new AsyncSubject<IShell[]>()
this.shells.next(await this.getShells())
let shells = await this.getShells()
this.logger.debug('Shells list:', shells)
this.shells.next(shells)
this.shells.complete()
}