|
|
|
@ -110,6 +110,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli |
|
|
|
|
const generatedText = output // no need to clean it. should already be
|
|
|
|
|
|
|
|
|
|
this.task = 'code_insertion' |
|
|
|
|
_paq.push(['trackEvent', 'ai', 'remixAI', this.task]) |
|
|
|
|
const item: monacoTypes.languages.InlineCompletion = { |
|
|
|
|
insertText: generatedText, |
|
|
|
|
range: new monaco.Range(position.lineNumber, position.column, position.lineNumber, position.column) |
|
|
|
@ -132,6 +133,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli |
|
|
|
|
// Code completion
|
|
|
|
|
this.task = 'code_completion' |
|
|
|
|
const output = await this.props.plugin.call('remixAI', 'code_completion', word, word_after) |
|
|
|
|
_paq.push(['trackEvent', 'ai', 'remixAI', this.task]) |
|
|
|
|
const generatedText = output |
|
|
|
|
let clean = generatedText |
|
|
|
|
|
|
|
|
|