Skip to content

Commit 48cced5

Browse files
gap-editorAniket-Engg
authored andcommitted
Update remix-ui-editor.tsx
1 parent 2c41dea commit 48cced5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ import { IPosition } from 'monaco-editor'
2828
import { RemixInLineCompletionProvider } from './providers/inlineCompletionProvider'
2929
const _paq = (window._paq = window._paq || [])
3030

31+
// Key for localStorage
32+
const HIDE_PASTE_WARNING_KEY = 'remixide.hide_paste_warning';
33+
3134
enum MarkerSeverity {
3235
Hint = 1,
3336
Info = 2,
@@ -668,11 +671,11 @@ export const EditorUI = (props: EditorUIProps) => {
668671
if (askAI) {
669672
// Proceed with the original okFn logic
670673
(async () => {
671-
await props.plugin.call('popupPanel', 'showPopupPanel', true)
672-
setTimeout(async () => {
673-
props.plugin.call('remixAI', 'chatPipe', 'vulnerability_check', pastedCodePrompt)
674-
}, 500)
675-
_paq.push(['trackEvent', 'ai', 'remixAI', 'vulnerability_check_pasted_code'])
674+
await props.plugin.call('popupPanel', 'showPopupPanel', true)
675+
setTimeout(async () => {
676+
props.plugin.call('remixAI', 'chatPipe', 'vulnerability_check', pastedCodePrompt)
677+
}, 500)
678+
_paq.push(['trackEvent', 'ai', 'remixAI', 'vulnerability_check_pasted_code'])
676679
})();
677680
}
678681
};

0 commit comments

Comments
 (0)