提交 7a895dda 编写于 作者: E Eugene Pankov

fixes

上级 b2fc016a
...@@ -37,7 +37,7 @@ export class ShellSettingsTabComponent { ...@@ -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 { ...@@ -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)
} }
......
...@@ -98,7 +98,9 @@ export class DebugDecorator extends TerminalDecorator { ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册