From 792994618ad4a680549ebc5bce91cc42b5d88a7d Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 31 Oct 2024 12:57:59 +0100 Subject: [PATCH 1/3] hide module resolution error --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 9a3957eb8c..2d92abe1a3 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -992,6 +992,9 @@ export const EditorUI = (props: EditorUIProps) => { // Allow JSON schema requests 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 monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', solidityTokensProvider as any) monacoRef.current.languages.setLanguageConfiguration('remix-solidity', solidityLanguageConfig as any) From b3abf36f879cbcd5ed3eb1007965f068d857e7a3 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Fri, 1 Nov 2024 18:37:57 +0100 Subject: [PATCH 2/3] lint --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 2d92abe1a3..d487090522 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -993,7 +993,7 @@ export const EditorUI = (props: EditorUIProps) => { 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] }) + monacoRef.current.languages.typescript.typescriptDefaults.setDiagnosticsOptions({ diagnosticCodesToIgnore: [2792]}) // Register a tokens provider for the language monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', solidityTokensProvider as any) From 93046ae5de0fe0038f21b596cf83ae17de92a88c Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 31 Oct 2024 12:08:43 +0100 Subject: [PATCH 3/3] use the default evmVersion. --- .../src/app/plugins/parser/services/code-parser-compiler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/parser/services/code-parser-compiler.ts b/apps/remix-ide/src/app/plugins/parser/services/code-parser-compiler.ts index 073347a33b..d29d427aea 100644 --- a/apps/remix-ide/src/app/plugins/parser/services/code-parser-compiler.ts +++ b/apps/remix-ide/src/app/plugins/parser/services/code-parser-compiler.ts @@ -161,7 +161,7 @@ export default class CodeParserCompiler { "*": ["evm.gasEstimates"] } }, - "evmVersion": state.evmVersion && state.evmVersion.toString() || "cancun", + "evmVersion": state.evmVersion && state.evmVersion.toString() || undefined, } } @@ -266,4 +266,4 @@ export default class CodeParserCompiler { return result } -} \ No newline at end of file +}