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

Function getEditor

static/components.ts:193–202  ·  view source on GitHub ↗
(langId: LanguageKey, id?: number)

Source from the content-addressed store, hash-verified

191 * TODO: main.js calls this with no arguments.
192 */
193export function getEditor(langId: LanguageKey, id?: number): ComponentConfig<typeof EDITOR_COMPONENT_NAME> {
194 return {
195 type: 'component',
196 componentName: EDITOR_COMPONENT_NAME,
197 componentState: {
198 id,
199 lang: langId,
200 },
201 };
202}
203
204/** Get an editor component with the given configuration. */
205export function getEditorWith(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected