ling and minor

pull/5100/head
STetsing 2 months ago
parent ee852709a9
commit 1cb612e53a
  1. 1
      apps/remix-ide/src/app.js
  2. 3
      libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts
  3. 1
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -66,7 +66,6 @@ import { FoundryHandleDesktop } from './app/plugins/electron/foundryPlugin'
import { HardhatHandle } from './app/files/hardhat-handle'
import { HardhatHandleDesktop } from './app/plugins/electron/hardhatPlugin'
import { SolCoder } from './app/plugins/solcoderAI'
import { GitPlugin } from './app/plugins/git'
import { Matomo } from './app/plugins/matomo'

@ -139,7 +139,6 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
// Code completion
this.task = 'code_completion'
const output = await this.props.plugin.call('remixAI', 'code_completion', word)
console.log('output', output)
const generatedText = output
let clean = generatedText
@ -178,10 +177,12 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
handleItemDidShow?(completions: monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>, item: monacoTypes.languages.InlineCompletion, updatedInsertText: string): void {
this.currentCompletion.displayed = true
this.currentCompletion.task = this.task
_paq.push(['trackEvent', 'ai', 'remixAI', this.task + '_did_show'])
}
handlePartialAccept?(completions: monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>, item: monacoTypes.languages.InlineCompletion, acceptedCharacters: number): void {
this.currentCompletion.accepted = true
this.currentCompletion.task = this.task
_paq.push(['trackEvent', 'ai', 'remixAI', this.task + '_partial_accept'])
}
freeInlineCompletions(completions: monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>): void {

@ -709,7 +709,6 @@ export const EditorUI = (props: EditorUIProps) => {
// Check if the change matches the current completion
if (changes.some(change => change.text === inlineCompletionProvider.currentCompletion.item.insertText)) {
_paq.push(['trackEvent', 'ai', 'remixAI', inlineCompletionProvider.currentCompletion.task + '_accepted'])
console.log('Accepted completion', inlineCompletionProvider.currentCompletion)
}
}
});

Loading…
Cancel
Save