fix updating of javascript/scheme in playground
This commit is contained in:
@@ -283,11 +283,8 @@ const language: EditorDelegate = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
setOutput(res.output)
|
setOutput(res.output)
|
||||||
// less flashy version
|
state.javascript.value = ""
|
||||||
if (state.selected.value === JAVASCRIPT)
|
state.scheme.value = ""
|
||||||
ipc.sendMessage("compile", [fileName, "javascript"]).then(js => state.javascript.value = bundle(js));
|
|
||||||
if (state.selected.value === SCHEME)
|
|
||||||
ipc.sendMessage("compile", [fileName, "scheme"]).then(scheme=> state.scheme.value = scheme);
|
|
||||||
return diags;
|
return diags;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("ERR", e);
|
console.log("ERR", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user