MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / createEditor

Function createEditor

graph-ui/src/reader/MonacoReader.tsx:137–159  ·  view source on GitHub ↗
(host: HTMLDivElement)

Source from the content-addressed store, hash-verified

135 }
136
137 function createEditor(host: HTMLDivElement) {
138 const monaco = prepareMonaco();
139 return monaco.editor.create(host, {
140 value: '',
141 theme: ATLAS_THEME,
142 readOnly: true,
143 domReadOnly: true,
144 automaticLayout: true,
145 fontFamily:
146 'ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace',
147 fontSize: 13,
148 lineHeight: 20,
149 minimap: { enabled: false },
150 scrollBeyondLastLine: false,
151 renderLineHighlight: 'line',
152 lineNumbersMinChars: 4,
153 glyphMargin: true,
154 contextmenu: false,
155 roundedSelection: false,
156 padding: { top: 8, bottom: 8 },
157 scrollbar: { verticalScrollbarSize: 10, horizontalScrollbarSize: 10 },
158 });
159 }
160
161 // Der Editor wird einmal gebaut und lebt so lange wie die Flaeche. Ein
162 // Editor je Datei waere ein Wegwerf-Fenster pro Klick.

Callers 1

MonacoReaderFunction · 0.85

Calls 1

prepareMonacoFunction · 0.90

Tested by

no test coverage detected