MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / createEditors

Function createEditors

scripts/static/js/manual.js:79–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79function createEditors() {
80 const optsCommon = {
81 language: "plaintext",
82 wordWrap: "on",
83 scrollBeyondLastLine: false,
84 minimap: { enabled: false },
85 fontLigatures: false,
86 fontSize: 14,
87 lineNumbers: "on",
88 renderLineHighlight: "line",
89 automaticLayout: true,
90 };
91
92 promptEditor = monaco.editor.create(promptHost, {
93 ...optsCommon,
94 readOnly: true,
95 theme: "vs-dark",
96 value: currentPromptText || "",
97 });
98
99 answerEditor = monaco.editor.create(answerHost, {
100 ...optsCommon,
101 readOnly: false,
102 theme: "hc-black",
103 value: "",
104 });
105}
106
107function disposeEditors() {
108 if (promptEditor) { promptEditor.dispose(); promptEditor = null; }

Callers 1

openTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected