src/presentation/components/Code/Ace/AceCodeEditorFactory.ts
Function initializeAceEditor
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const initializeAceEditor: CodeEditorFactory = (options) => {
const editor = ace.edit(options.editorContainerElementId);
const mode = getAceModeName(options.language);
editor.getSession().setMode(`ace/mode/${mode}`);
editor.setTheme(`ace/theme/${CodeEditorTheme}`);