Skip to content

Commit

Permalink
fix(App): do not clear console in style-only update
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Nov 27, 2024
1 parent 7105d2f commit f6ebeb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/livecodes/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,9 @@ const setCustomSettingsMark = () => {

const run = async (editorId?: EditorId, runTests?: boolean) => {
setLoading(true);
toolsPane?.console?.clear(/* silent= */ true);
if (editorId !== 'style') {
toolsPane?.console?.clear(/* silent= */ true);
}
const config = getConfig();
const shouldRunTests = (runTests ?? config.autotest) && Boolean(config.tests?.content?.trim());
const result = await getResultPage({ sourceEditor: editorId, runTests: shouldRunTests });
Expand Down

0 comments on commit f6ebeb5

Please sign in to comment.