MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / createEditor

Method createEditor

static/panes/editor.ts:211–224  ·  view source on GitHub ↗
(editorRoot: HTMLElement)

Source from the content-addressed store, hash-verified

209 }
210
211 override createEditor(editorRoot: HTMLElement): void {
212 this.editor = monaco.editor.create(
213 editorRoot,
214 monacoConfig.extendConfig(
215 {
216 readOnly: !!options.readOnly || this.legacyReadOnly || window.compilerExplorerOptions?.mobileViewer,
217 glyphMargin: !options.embedded,
218 },
219 this.settings,
220 ),
221 );
222
223 this.editor.getModel()?.setEOL(monaco.editor.EndOfLineSequence.LF);
224 }
225
226 override getPrintName() {
227 return 'Source Editor';

Callers

nothing calls this directly

Calls 1

createMethod · 0.80

Tested by

no test coverage detected