File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
apps/remix-ide/src/app/plugins Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ export class RemixAIAssistant extends ViewPlugin {
27
27
event : any
28
28
chatRef : React . RefObject < RemixUiRemixAiAssistantHandle >
29
29
history : ChatMessage [ ] = [ ]
30
-
30
+
31
31
constructor ( ) {
32
32
super ( profile )
33
33
this . event = new EventEmitter ( )
34
34
this . element = document . createElement ( 'div' )
35
35
this . element . setAttribute ( 'id' , 'remix-ai-assistant' )
36
36
this . chatRef = createRef < RemixUiRemixAiAssistantHandle > ( )
37
- ; ( window as any ) . remixAIChat = this . chatRef
37
+ ; ( window as any ) . remixAIChat = this . chatRef
38
38
}
39
39
40
40
async onActivation ( ) {
@@ -85,7 +85,6 @@ export class RemixAIAssistant extends ViewPlugin {
85
85
this . renderComponent ( )
86
86
}
87
87
88
-
89
88
onReady ( ) {
90
89
console . log ( 'RemixAiAssistant onReady' )
91
90
}
@@ -101,11 +100,10 @@ export class RemixAIAssistant extends ViewPlugin {
101
100
102
101
async handleActivity ( type : string , payload : any ) {
103
102
console . log ( 'RemixAiAssistant activity:' , type , payload )
104
-
103
+
105
104
await this . call ( 'layout' , 'maximisePinnedPanel' )
106
-
107
- }
108
105
106
+ }
109
107
110
108
updateComponent ( state : {
111
109
queuedMessage : { text : string , timestamp : number } | null
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ export class RemixAIPlugin extends Plugin {
282
282
prompt : prompt ,
283
283
context : context
284
284
}
285
-
285
+
286
286
if ( pipeMessage ) this . call ( 'remixaiassistant' , 'chatPipe' , pipeMessage )
287
287
else {
288
288
if ( fn === "code_explaining" ) this . call ( 'remixaiassistant' , 'chatPipe' , "Explain the current code" )
@@ -322,7 +322,4 @@ export class RemixAIPlugin extends Plugin {
322
322
this . chatRequestBuffer = null
323
323
}
324
324
325
-
326
-
327
-
328
325
}
You can’t perform that action at this time.
0 commit comments