This commit is contained in:
Eugene Pankov 2020-03-01 16:16:03 +01:00
parent b2fc016aa8
commit 7a895dda1a
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ export class ShellSettingsTabComponent {
this.isConPTYStable = isWindowsBuild(WIN_BUILD_CONPTY_STABLE) this.isConPTYStable = isWindowsBuild(WIN_BUILD_CONPTY_STABLE)
} }
async ngOnInit (): void { async ngOnInit (): Promise<void> {
this.shells = await this.terminalService.shells$.toPromise() this.shells = await this.terminalService.shells$.toPromise()
} }
@ -45,7 +45,7 @@ export class ShellSettingsTabComponent {
this.configSubscription.unsubscribe() this.configSubscription.unsubscribe()
} }
async reload (): void { async reload (): Promise<void> {
this.profiles = await this.terminalService.getProfiles(true) this.profiles = await this.terminalService.getProfiles(true)
} }

View File

@ -98,7 +98,9 @@ export class DebugDecorator extends TerminalDecorator {
private async doLoadState (terminal: TerminalTabComponent) { private async doLoadState (terminal: TerminalTabComponent) {
const data = await this.loadFile() const data = await this.loadFile()
terminal.frontend.restoreState(data) if (data) {
terminal.frontend.restoreState(data)
}
} }
private async doPasteState (terminal: TerminalTabComponent) { private async doPasteState (terminal: TerminalTabComponent) {