Link Search Menu Expand Document

Open editor

Summary

Flows

  • src/editor/code/CodePane.tsx
class CodePane {
    useEffect {
        m = monaco.editor.create(editor.current, settings())

        m.onDidChangeModelContent => Workers.validate

    }

}
  • src/editor/code/monaco/settings.ts
export const settings = (
  override: monaco.editor.IStandaloneEditorConstructionOptions = {},
): monaco.editor.IStandaloneEditorConstructionOptions => ({
  language: 'graphqle',
  glyphMargin: true,
  theme: 'graphql-editor',
});

Main

Ref


Copyright © 2020 Thence LLC