Skip to content

Commit fc1be59

Browse files
committed
lint
1 parent 042e421 commit fc1be59

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

apps/remix-ide/src/app/plugins/remix-ai-assistant.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export class RemixAIAssistant extends ViewPlugin {
2727
event: any
2828
chatRef: React.RefObject<RemixUiRemixAiAssistantHandle>
2929
history: ChatMessage[] = []
30-
30+
3131
constructor() {
3232
super(profile)
3333
this.event = new EventEmitter()
3434
this.element = document.createElement('div')
3535
this.element.setAttribute('id', 'remix-ai-assistant')
3636
this.chatRef = createRef<RemixUiRemixAiAssistantHandle>()
37-
;(window as any).remixAIChat = this.chatRef
37+
;(window as any).remixAIChat = this.chatRef
3838
}
3939

4040
async onActivation() {
@@ -85,7 +85,6 @@ export class RemixAIAssistant extends ViewPlugin {
8585
this.renderComponent()
8686
}
8787

88-
8988
onReady() {
9089
console.log('RemixAiAssistant onReady')
9190
}
@@ -101,11 +100,10 @@ export class RemixAIAssistant extends ViewPlugin {
101100

102101
async handleActivity(type: string, payload: any) {
103102
console.log('RemixAiAssistant activity:', type, payload)
104-
103+
105104
await this.call('layout', 'maximisePinnedPanel')
106-
107-
}
108105

106+
}
109107

110108
updateComponent(state: {
111109
queuedMessage: { text: string, timestamp: number } | null

apps/remix-ide/src/app/plugins/remixAIPlugin.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export class RemixAIPlugin extends Plugin {
282282
prompt: prompt,
283283
context: context
284284
}
285-
285+
286286
if (pipeMessage) this.call('remixaiassistant', 'chatPipe', pipeMessage)
287287
else {
288288
if (fn === "code_explaining") this.call('remixaiassistant', 'chatPipe',"Explain the current code")
@@ -322,7 +322,4 @@ export class RemixAIPlugin extends Plugin {
322322
this.chatRequestBuffer = null
323323
}
324324

325-
326-
327-
328325
}

0 commit comments

Comments
 (0)