Skip to content

Commit

Permalink
show terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Sep 11, 2023
1 parent def4343 commit d49271b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/remix-ide/src/app/panels/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions apps/remix-ide/src/app/plugins/openaigpt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class OpenAIGpt extends Plugin {
}

async message(prompt): Promise<CreateChatCompletionResponse> {
this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', 'Waiting for GPT answer...')
let result
try {
Expand Down

0 comments on commit d49271b

Please sign in to comment.