Allow JSON schema fetching for `sindri.json` file validation.

See: https://github.com/microsoft/monaco-editor/issues/1331
pull/4512/head
Evan Sangaline 10 months ago committed by Aniket
parent 4fa7ff080d
commit 245b1aa634
  1. 3
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -858,6 +858,9 @@ export const EditorUI = (props: EditorUIProps) => {
monacoRef.current.languages.register({ id: 'remix-move' })
monacoRef.current.languages.register({ id: 'remix-circom' })
// Allow JSON schema requests
monacoRef.current.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest: true})
// Register a tokens provider for the language
monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', solidityTokensProvider as any)
monacoRef.current.languages.setLanguageConfiguration('remix-solidity', solidityLanguageConfig as any)

Loading…
Cancel
Save