(editorRoot: HTMLElement)
| 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'; |