Skip to content

Commit 5c816c8

Browse files
committed
chore: remove debug logging from Monaco editor and syntax error handling
1 parent 81b347e commit 5c816c8

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

app/components/ResultPreview/IframeContent.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -290,27 +290,7 @@ const IframeContent: React.FC<IframeContentProps> = ({
290290

291291
const errorCount = errorMarkers.length;
292292

293-
// Enhanced debug logging
294-
console.log('Monaco marker check:', {
295-
totalMarkers: allMarkers.length,
296-
errorCount: errorCount,
297-
allMarkers: allMarkers.map((m: any) => ({
298-
owner: m.owner,
299-
severity: m.severity,
300-
message: m.message,
301-
severityName:
302-
m.severity === monaco.MarkerSeverity.Error
303-
? 'Error'
304-
: m.severity === monaco.MarkerSeverity.Warning
305-
? 'Warning'
306-
: m.severity === monaco.MarkerSeverity.Info
307-
? 'Info'
308-
: 'Hint',
309-
})),
310-
});
311-
312293
if (onSyntaxErrorChange) {
313-
console.log('Calling onSyntaxErrorChange with errorCount:', errorCount);
314294
onSyntaxErrorChange(errorCount);
315295
}
316296
};

app/routes/home.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ export default function UnifiedSession() {
127127

128128
// Handle syntax error changes from editor
129129
const handleSyntaxErrorChange = useCallback((errorCount: number) => {
130-
console.log('handleSyntaxErrorChange called with:', errorCount);
131130
setSyntaxErrorCount(errorCount);
132131
}, []);
133132

0 commit comments

Comments
 (0)