diff --git a/apps/remix-ide/src/app/plugins/solcoderAI.tsx b/apps/remix-ide/src/app/plugins/solcoderAI.tsx index 3e69576eb0..a377f78979 100644 --- a/apps/remix-ide/src/app/plugins/solcoderAI.tsx +++ b/apps/remix-ide/src/app/plugins/solcoderAI.tsx @@ -35,7 +35,7 @@ export class SolCoder extends Plugin { body: JSON.stringify({"data":[prompt,false,1000,0.2,0.8,50]}), }) ).json() - return result.data[0] + return result.data[0] } catch (e) { this.call('terminal', 'log', { type: 'typewritererror', value: `Unable to get a response ${e.message}` }) return diff --git a/libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts b/libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts index bbf453277c..86fef067ec 100644 --- a/libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts +++ b/libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts @@ -72,7 +72,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli word.split('\n').at(-1).trimStart().startsWith('/*') || word.split('\n').at(-1).trimStart().startsWith('*') || word.split('\n').at(-1).trimStart().startsWith('*/') - ){ + ){ return; // do not do completion on single and multiline comment } diff --git a/libs/remix-ui/editor/src/lib/suggestion-service/suggestion-service.ts b/libs/remix-ui/editor/src/lib/suggestion-service/suggestion-service.ts index d5efeea610..9f6b9db751 100644 --- a/libs/remix-ui/editor/src/lib/suggestion-service/suggestion-service.ts +++ b/libs/remix-ui/editor/src/lib/suggestion-service/suggestion-service.ts @@ -7,7 +7,7 @@ export class SuggestionService { constructor() { console.log('SuggestionService instanciate worker') this.worker = new Worker(new URL('./worker.js', import.meta.url), { - type: 'module' + type: 'module' }); this.init() this.events = new EventEmitter() @@ -17,46 +17,46 @@ export class SuggestionService { async init() { const onMessageReceived = (e) => { switch (e.data.status) { - case 'initiate': - console.log(e.data) - this.events.emit(e.data.status, e.data) - // Model file start load: add a new progress item to the list. - break; + case 'initiate': + console.log(e.data) + this.events.emit(e.data.status, e.data) + // Model file start load: add a new progress item to the list. + break; - case 'progress': - this.events.emit(e.data.status, e.data) - console.log(e.data) - // Model file progress: update one of the progress items. - break; + case 'progress': + this.events.emit(e.data.status, e.data) + console.log(e.data) + // Model file progress: update one of the progress items. + break; - case 'done': - this.events.emit(e.data.status, e.data) - console.log(e.data) - // Model file loaded: remove the progress item from the list. - break; + case 'done': + this.events.emit(e.data.status, e.data) + console.log(e.data) + // Model file loaded: remove the progress item from the list. + break; - case 'ready': - this.events.emit(e.data.status, e.data) - console.log(e.data) - // Pipeline ready: the worker is ready to accept messages. - break; + case 'ready': + this.events.emit(e.data.status, e.data) + console.log(e.data) + // Pipeline ready: the worker is ready to accept messages. + break; - case 'update': - this.events.emit(e.data.status, e.data) - console.log(e.data) - // Generation update: update the output text. - break; + case 'update': + this.events.emit(e.data.status, e.data) + console.log(e.data) + // Generation update: update the output text. + break; - case 'complete': - console.log(e.data) - if (this.responses[e.data.id]) { - this.responses[e.data.id](null, e.data) - } else { - console.log('no callback for', e.data) - } - - // Generation complete: re-enable the "Generate" button - break; + case 'complete': + console.log(e.data) + if (this.responses[e.data.id]) { + this.responses[e.data.id](null, e.data) + } else { + console.log('no callback for', e.data) + } + + // Generation complete: re-enable the "Generate" button + break; } }; diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx index 4064d8961a..768a8c67cf 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -659,8 +659,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { /> {aiLoading &&