fix: cleanup

This commit is contained in:
Felix Roos
2026-02-13 08:36:46 +01:00
parent 23f6ff9bc4
commit 04dcbda9a3
2 changed files with 5 additions and 11 deletions
-4
View File
@@ -412,10 +412,6 @@ export class StrudelMirror {
setAutocompletionEnabled(enabled) {
this.reconfigureExtension('isAutoCompletionEnabled', enabled);
}
updatePrebake(prebake) {
logger('[repl] prebake updated');
this.prebaked = prebake();
}
updateSettings(settings) {
this.setFontSize(settings.fontSize);
this.setFontFamily(settings.fontFamily);
+5 -7
View File
@@ -184,13 +184,11 @@ export function useReplContext() {
}, [_settings]);
useEffect(() => {
const prebake = async () =>
Promise.all([modulesLoading, presets]).then(() => {
if (prebakeScript?.length) {
return evaluateUserPrebake(prebakeScript ?? '');
}
});
editorRef.current?.updatePrebake(prebake);
Promise.all([modulesLoading, presets]).then(() => {
if (prebakeScript?.length) {
return evaluateUserPrebake(prebakeScript ?? '');
}
});
}, [prebakeScript]);
//