add editor diagnostics

This commit is contained in:
Han Tuerker
2022-12-11 13:14:31 +08:00
parent 11d2635463
commit 3b91bf9eaa

View File

@@ -26,6 +26,12 @@ const CodeEditor = lazy(
import("@src/components/CodeEditor" /* webpackChunkName: "CodeEditor" */)
);
const diagnosticsOptions = {
noSemanticValidation: false,
noSyntaxValidation: false,
noSuggestionDiagnostics: true,
};
export default function Settings({
config,
onChange,
@@ -113,6 +119,7 @@ export default function Settings({
</Stack>
<Suspense fallback={<FieldSkeleton height={200} />}>
<CodeEditor
diagnosticsOptions={diagnosticsOptions}
value={formulaFn}
extraLibs={[
formulaDefs.replace(