hide module resolution error

pull/5361/head
yann300 3 weeks ago committed by bunsenstraat
parent 51e699816d
commit 792994618a
  1. 3
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -992,6 +992,9 @@ export const EditorUI = (props: EditorUIProps) => {
// Allow JSON schema requests // Allow JSON schema requests
monacoRef.current.languages.json.jsonDefaults.setDiagnosticsOptions({ enableSchemaRequest: true }) monacoRef.current.languages.json.jsonDefaults.setDiagnosticsOptions({ enableSchemaRequest: true })
// hide the module resolution error. We have to remove this when we know how to properly resolve imports.
monacoRef.current.languages.typescript.typescriptDefaults.setDiagnosticsOptions({ diagnosticCodesToIgnore: [2792] })
// Register a tokens provider for the language // Register a tokens provider for the language
monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', solidityTokensProvider as any) monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', solidityTokensProvider as any)
monacoRef.current.languages.setLanguageConfiguration('remix-solidity', solidityLanguageConfig as any) monacoRef.current.languages.setLanguageConfiguration('remix-solidity', solidityLanguageConfig as any)

Loading…
Cancel
Save