self-host fonts; proper error bubbling

This commit is contained in:
Joeri Exelmans 2025-05-17 18:01:31 +02:00
parent 68104a8102
commit 46baad7cf4
8 changed files with 63 additions and 34 deletions

View file

@ -192,7 +192,7 @@ export function Editor({state, setState, onCancel, suggestionPriority}: EditorPr
}
}
const resolved = evalEditorBlock(state, env);
return <span className="editor">
return <span className={"editor" + ((resolved.kind==="error") ? " error" : "")}>
{renderBlock()}
<div className="typeSignature">
&nbsp;::&nbsp;<Type type={getType(resolved)} />