|
|
|
@ -4,7 +4,7 @@ import Editor, { loader } from '@monaco-editor/react' |
|
|
|
|
import { reducerActions, reducerListener, initialState } from './actions/editor' |
|
|
|
|
import { language, conf } from './syntax' |
|
|
|
|
import { cairoLang, cairoConf } from './cairoSyntax' |
|
|
|
|
|
|
|
|
|
import { ethers } from 'ethers' |
|
|
|
|
import './remix-ui-editor.css' |
|
|
|
|
|
|
|
|
|
type cursorPosition = { |
|
|
|
@ -223,6 +223,7 @@ export const EditorUI = (props: EditorUIProps) => { |
|
|
|
|
useEffect(() => { |
|
|
|
|
if (!monacoRef.current) return |
|
|
|
|
defineAndSetTheme(monacoRef.current) |
|
|
|
|
monacoRef.current.languages.typescript.typescriptDefaults.addExtraLib('declare function require(module: string): any;') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|