From e6baa3588b5841320fde79c47bac830457364cbf Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 11 Sep 2023 14:18:08 +0200 Subject: [PATCH] show terminal --- apps/remix-ide/src/app/panels/layout.ts | 8 +++++++- apps/remix-ide/src/app/plugins/openaigpt.tsx | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/panels/layout.ts b/apps/remix-ide/src/app/panels/layout.ts index 3a44d1f83bf..a152efc72ec 100644 --- a/apps/remix-ide/src/app/panels/layout.ts +++ b/apps/remix-ide/src/app/panels/layout.ts @@ -6,7 +6,7 @@ import { QueryParams } from '@remix-project/remix-lib' const profile: Profile = { name: 'layout', description: 'layout', - methods: ['minimize', 'maximiseSidePanel', 'resetSidePanel'] + methods: ['minimize', 'maximiseSidePanel', 'resetSidePanel', 'maximizeTerminal'] } interface panelState { @@ -109,6 +109,12 @@ export class Layout extends Plugin { this.maximised[current] = true } + async maximizeTerminal() { + this.panels.terminal.minimized = false + this.event.emit('change', this.panels) + this.emit('change', this.panels) + } + async resetSidePanel () { this.event.emit('resetsidepanel') const current = await this.call('sidePanel', 'currentFocus') diff --git a/apps/remix-ide/src/app/plugins/openaigpt.tsx b/apps/remix-ide/src/app/plugins/openaigpt.tsx index 042c6da13b4..e95babe00ac 100644 --- a/apps/remix-ide/src/app/plugins/openaigpt.tsx +++ b/apps/remix-ide/src/app/plugins/openaigpt.tsx @@ -18,6 +18,7 @@ export class OpenAIGpt extends Plugin { } async message(prompt): Promise { + this.call('layout', 'maximizeTerminal') this.call('terminal', 'log', 'Waiting for GPT answer...') let result try {