diff --git a/terminus-terminal/src/components/shellSettingsTab.component.ts b/terminus-terminal/src/components/shellSettingsTab.component.ts index e7eb04a41c59a024111b87b1742d6bd47ace259d..8009640e1e174a3f348ff1c4d8a88d8cb38bf074 100644 --- a/terminus-terminal/src/components/shellSettingsTab.component.ts +++ b/terminus-terminal/src/components/shellSettingsTab.component.ts @@ -37,7 +37,7 @@ export class ShellSettingsTabComponent { this.isConPTYStable = isWindowsBuild(WIN_BUILD_CONPTY_STABLE) } - async ngOnInit (): void { + async ngOnInit (): Promise { this.shells = await this.terminalService.shells$.toPromise() } @@ -45,7 +45,7 @@ export class ShellSettingsTabComponent { this.configSubscription.unsubscribe() } - async reload (): void { + async reload (): Promise { this.profiles = await this.terminalService.getProfiles(true) } diff --git a/terminus-terminal/src/features/debug.ts b/terminus-terminal/src/features/debug.ts index 967cde0885a1eccd9a5788d566ad31a3f9465e4f..03429b20b819e20e44010ffcbd401038c7e73a8b 100644 --- a/terminus-terminal/src/features/debug.ts +++ b/terminus-terminal/src/features/debug.ts @@ -98,7 +98,9 @@ export class DebugDecorator extends TerminalDecorator { private async doLoadState (terminal: TerminalTabComponent) { const data = await this.loadFile() - terminal.frontend.restoreState(data) + if (data) { + terminal.frontend.restoreState(data) + } } private async doPasteState (terminal: TerminalTabComponent) {